Connect with users of Wolfram technologies to learn, solve problems and share ideas
Mark as an Answer
4 Total Likes
Follow this post
Share this post:
Presentation and Notebooks
Two document formatting questions...
Rob Holman, The Walker School
11 years ago
I'm working on a document for a course that I teach, and I've come up against two problems:
First, I'm showing some mathematica work with a "equals aligned" math cell from the Writing Assistant Palette, and they involve some algebraic fractions. The program automatically shrinks these fractions, but I'd like to leave them in the 12 point font. I thought I might be able to get around this by putting an "AllowScriptLevelChange -> False" in the code for the cell, but my attempts failed. Then I thought I might be able to edit the Stylesheet to do what I wanted, but I don't know how.
Second, I want to put a definition in a frame (which requires a text cell), and I'd like to have some of the cell be left-aligned, and some of the cell to be center-aligned. Ordinarily I'd just create two cells, but I need all of the contents in a single frame. Is there a way to do switch alignments mid cell?
Thanks for the help!
Itai Seggev, WOLFRAM
11 years ago
You want to add the following code to your cell (at the cell level):
Basically, you want to prevent script level changes inside from the fractions, without allowing any surrounding boxes (like GridBox) to interfere with their own opinions.
You can also do this at a higher or lower level interactivly by selecting something, opening the options inspector, searching for FractionBoxOptions, and toggling AllowScriptLevelChange.
As for your second problem, I think you'd want a cell containing two inline cells, each own with its own alignment.
CellPrint @ Cell[
Cell["Hello\nI'm left aligned", "Text"],
Cell["And I am\ncenter-aligned", "Text", TextAlignment -> Center]
"Text" (* or "Input", or whatever you want the overall style to be. *)
Andre Kuzniarek, Wolfram Research
11 years ago
Grid might be useful in this case, if it does not interfere with other requirements:
Style["This\nis center-aligned", TextAlignment -> Center]}}]
Reply to this discussion
in reply to
Community posts can be styled and formatted using the
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Add a file to this post
Follow this discussion
Be respectful. Review our
to understand your role and responsibilities.
Wolfram|Alpha Notebook Edition
Volume & Site Licensing
Enterprise Private Cloud
Service Plans Benefits
Wolfram Language Documentation
Wolfram Language Introductory Book
Get Started with Wolfram
Fast Introduction for Programmers
Fast Introduction for Math Students
Webinars & Training
Connected Devices Project
Wolfram Data Drop
Wolfram + Raspberry Pi
. All rights reserved.
Learn how »