我經常在LaTeX的創建表,並以這種方式文本或圖形填充它們HTML表中的列:創建使用組織模式
\begin{tabular}{cc}
\begin{minipage}{.5\textwidth}
Stuff in column 1 which can be a figure
\end{minipage} &
\begin{minipage}{.5\textwidth}
Stuff in column 2 which can be a figure
\end{minipage}
\end{tabular}
當我使用minipage
環境,我再也不用對齊文本在每行的第1和第2列中,所以我基本上可以根據需要輸入,編輯或粘貼散文(有點像在MS Word中創建表格......)。
使用emacs org-mode生成HTML時有這樣的竅門嗎?
編輯
來形容我的情況好...
如果我有散文,
文本塊1:
c1, line1
c1, line2
c1, line3
文本塊2:
c2, line1
c2, line2
乳膠:
\begin{tabular}{cc}
\begin{minipage}{.5\textwidth}
c1, line1
c1, line2
c1, line3
\end{minipage} &
\begin{minipage}{.5\textwidth}
c2, line1
c2, line2
\end{minipage}
\end{tabular}
HTML:
<table>
<tr>
<td>
c1, line1<br>
c1, line2<br>
c1, line3<br>
</td>
<td>
c2, line1<br>
c2, line2<br>
</td>
</tr>
</table>
組織模式:
| c1, line1 | c2, line1 |
| c1, line2 | c2, line2 |
| c1, line3 | |
隨着組織模式,我將不得不手動對齊文本行明智的,而用LaTeX我可以將文本放在小型文件夾環境中,而不用擔心跨越多行的文本如何對齊。
問題是你不知道如何將圖像放在表格中的組織模式?會使用[內嵌圖片](http://orgmode.org/manual/Images-in-HTML-export.html)爲此工作? – cm2 2012-03-04 23:39:35
不一定是圖像,但任意長度/高度的文本/對象不會影響下一列中的文本佈局。組織模式表在默認情況下是按行進行的。 – hatmatrix 2012-03-05 18:51:07
所以你想要固定列寬?在HTML中,你需要像'