mathematica 配合mysql_2 column documents in mathematica

I don't think any good implementation of multicolumns are supported in Mathematica - it's not really compatible with the structure of the notebook interface. The fact that publicon does not support proper multiple columns is probably a good hint that Mathematica does not.

Q: Does Publicon support multi-column layout?

Publicon documents are

oriented toward a vertical scrolling paradigm much like HTML, rather

than a page-by-page configuration found in page-layout programs.

Multiple columns can be configured in tables, but not maintained as

flows. Publicon's focus is on document structure, allowing clean

translation to LaTeX or XML for submission to publishers. Publishers

can then use page-layout tools that exploit their own particular

formats to generate single- or double-column layouts to their own

specifications.

Although, of course, hacks like Bilateral Cells (part of the Author Tools package mentioned in Verbia's answer) and that below can be used.

Here's some code that generates a two column text cell that will resize the columns to the window size - but the text does not flow from one column to another. Once the cell is generated, you can type in it as per normal.

Cell[BoxData[

GridBox[{{Cell["Column One:\nsome text", "Text"],

Cell["Column Two:\nmore text", "Text"]}}, ColumnsEqual -> True,

ColumnSpacings -> 2, ColumnAlignments -> Left,

ColumnWidths -> Dynamic[First[WindowSize /. Options[EvaluationNotebook[]]]/(2*18)]]],

"Text"] // CellPrint

Vog67.png

Or you can have text on the left an input/output on the right

Cell[BoxData[GridBox[{

{Cell["Column One:\nsome text", "Text"], Cell[BoxData[RowBox[{"1", "+", "1"}]], "Input"]},

{"\[SpanFromAbove]", Cell[BoxData["2"], "Output"]}},

ColumnsEqual -> True, ColumnSpacings -> 2, ColumnAlignments -> Left,

ColumnWidths -> Dynamic[First[WindowSize /. Options[EvaluationNotebook[]]]/(2*18)]]],

"Text"] // CellPrint

Q7UjP.png

Note that I've only done a dodgy conversion from pixels to em by dividing the former by 18. The true conversion will be system and font dependent. Also, just adding CellLabels to the input and output cells does not work. So the In[n]:= Out[n]= might need to be added manually using a small middle column.

Finally, it should be possible to construct something like the bilateral cell code used by the author tools package that grabs a Text/MathCaption cell followed by an Input and Output cell and combines them into a two-column construction.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值