使用Mathematica构建演示文稿和文档(Using Mathematica to build presentations and documents)

编程入门 行业动态 更新时间:2024-10-11 05:25:18
使用Mathematica构建演示文稿和文档(Using Mathematica to build presentations and documents)

我主要使用Mma解决相对较小的问题。

我想开始使用它来准备我的演示文稿和文档 ,但是我有麻烦学习如何从嵌入式帮助中做到这一点,我想其他地方可能会提供一些好的资源。

你知道任何有用的指针(书籍,论文,视频......)吗?

你有没有“诀窍”在这里张贴?

编辑

到目前为止,这个问题得到了两个答案(@ mzabsky's和Mr.Wizard's),虽然两者都很有用,但也许我的担忧更基本。 因此,我发布了一些我无法做到的事情(或者了解如何辨别其他人如何做)。

我从The Mathematica Journal中选取了以下示例(下图中左侧的笔记本 - 单击图像查看完整大小):

所以,有些问题,只是为了解我的烦恼:

1)我将文本复制到右边的.nb文件中,并使用相同的样式(文本)对其进行格式化,但外观不同,所以我认为样式定义不同。 如何将样式定义从一个.nb复制到另一个?

2)文本块下方的表格没有附加样式。 它是如何格式化的? 背景颜色在哪里定义?

我希望能够阅读这些问题的指针(或观看视频,或其他)。 我不想让你在这里写下关于Mathematica格式的书!

在答案中发布的链接摘要

一个Mathgroup线程 (John Browne)和这里 (David Park和Selwyn Hollis) 来自Bob Ueland的建议 写作助手调色板 大卫公园的笔记 西蒙的文件 Mathematica SlideShow演示者提示 笔记本格式 Mathematica演示文稿 影片 Mathematica Slide Show Presenters提示 如何 - 自动幻灯片放映 创建讲义笔记本

I use Mma mainly to solve relatively small problems.

I want to start using it also to prepare my presentations and documents, but I am having troubles to learn how to do it from the embedded help, and I guess some good resources may be available elsewhere.

Do you know any useful pointers (books, papers, videos ...)?

Do you have a "bag of tricks" to post here?

Edit

This question received two answers so far (@mzabsky's and Mr.Wizard's) and although both are useful, perhaps my concerns are much more basic. So I am posting an example of the kind of things I am unable to do (or understand how to discern how others did them).

I took the following example from The Mathematica Journal (the notebook at the left on the following image - click on the image to see full size):

So, some issues, just to get the idea of my troubles:

1) I copied the text to my .nb on the right, formatted it with the same style (text), but the appearance is different, so I guess the style definition is different. How can I copy the style definitions from one .nb to the other?

2) The table below the text block doesn't have an attached style. How was it formatted? Where is the background color defined?

I would like pointers to read (or videos to look, or whatever) about these issues. I don't want you to write down here a book on Mathematica formatting!

Summary of the links posted in answers

A Mathgroup thread (John Browne) and here (David Park and Selwyn Hollis) Advice from Bob Ueland The Writing Assistant Palette David Park's notes Simon's documents Tips for Mathematica SlideShow presenters Notebook formatting Presentations with Mathematica Videos Tips for Mathematica Slide Show Presenters How to - Automatic Slide Show Create a Lecture Notebook

最满意答案

我赞同mzabsky在他的回答中所说的一切。 以下是一些额外的事情:

我发现使用Text或DisplayFormula单元格生成语句,然后手动将Mathematica检查/ DisplayFormula分组到语句中,然后将其折叠并可以在需要时显示。

写作助手调色板有很多有用的结构,你可以从中学习。

最后,我发现制作自己的样式表非常有用,原因有两个:1)内置的样式有点难看; 2)它确实有助于你理解笔记本的工作方式。

要查看我制作的样式表的示例(我并不认为它是完美的 - 我并不打算在所有屏幕环境中使用它)查看ftp://ftp.physics.uwa.edu中的一些文件.au / pub / MATH2200 / 2010 / 。 我在所有笔记中使用了类似的样式表 - 我有许多主要包含在Mma笔记本中的研究项目,例如http://arxiv.org/abs/1102.3043 。

像巫师先生一样,我也推荐David Park的笔记作为出发点。 另外,您应该学习样式表,通过转到格式菜单并单击“编辑样式表”。 不要忘记遵循样式表级联(版本6以上)的链接。

要回答编辑中的问题:查看笔记本的样式表后,您可以保存,编辑它,并将其用于自己的文档中。 在$UserBaseDirectory/SystemFiles/FrontEnd/StyleSheets在菜单中自动提供。 然后,只需从菜单中选择该样式表,即可在任何笔记本中使用该样式表。

样式表中包含您发布的截图中的格式。 这包括表格中的灰色背景。

附录:

向其他人分发笔记本时,如果样式表位于笔记本外部,则其他人将不会像您那样看到它。 要将样式表包含到当前笔记本中,您需要类似的代码

ss = StyleDefinitions /. Options[EvaluationNotebook[]] fn = ToFileName[{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets"}, ss] If[FileExistsQ[fn], style=Get[fn];SetOptions[EvaluationNotebook[],StyleDefinitions->style];, Print["Can not find file"]]

(假设文件存储在传统的地方)

这是一个EmbedStylesheet.m ,它是上述的改进版本。

I agree with all that mzabsky said in his answer. Here's a few of extra things:

I find it useful to make statements using a Text or DisplayFormula cell then manually group a Mathematica check/proof to the statement which is then collapsed and can be displayed when you want.

The Writing Assistant Palette has quite a few useful constructions in it that you can learn from.

Finally, I found it really useful to make my own style sheet for a couple reasons: 1) the built-in ones are a bit ugly; 2) it really helps you to understand how the notebooks work.

To see examples of the stylesheet I made (which I don't claim to be perfect - I didn't bother making it work in all screen environments) look at some of the files in ftp://ftp.physics.uwa.edu.au/pub/MATH2200/2010/. I use a similar stylesheet in all of my notes - I have many research projects primarily contained in Mma notebooks, eg http://arxiv.org/abs/1102.3043.

Like Mr Wizard, I also recommend David Park's notes as a starting point. Also, you should study stylesheets that you like by going to the Format menu and clicking "Edit Stylesheet". Don't forget to follow the links through the cascade of stylesheets (version 6 onwards).

To answer the questions in your edit: Once you are viewing a notebook's stylesheet, you can save it, edit it, and use it in your own documents. Stylesheets in $UserBaseDirectory/SystemFiles/FrontEnd/StyleSheets are automatically available in the menu. You can then use that stylesheet in any notebook by simply selecting it from the menu.

The formating in the screenshot that you posted is all contained in the stylesheet. This includes the grey background in the table.

Addendum:

When distributing notebooks to others, if the stylesheet is external from the notebook, then other people will not see it as you do. To include the stylesheet into the current notebook, you need code like

ss = StyleDefinitions /. Options[EvaluationNotebook[]] fn = ToFileName[{$UserBaseDirectory, "SystemFiles", "FrontEnd", "StyleSheets"}, ss] If[FileExistsQ[fn], style=Get[fn];SetOptions[EvaluationNotebook[],StyleDefinitions->style];, Print["Can not find file"]]

(Assuming the file is in stored in the conventional place)

Here's an EmbedStylesheet.m that is an improved version of the above.

更多推荐

本文发布于:2023-08-01 05:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1354192.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:演示文稿   文档   Mathematica   documents   presentations

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!