{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

0
votes
1answer
11 views

Keywords in Perl-POD breaking listing

I'm trying to include a perl-script with pod. It seems liks the listings-package does not detect the pod-documentation part as comment which breaks the rest of the listing. How to fix this behaviour? ...
1
vote
0answers
23 views

Theorems in italic, but not examples [duplicate]

Is there are way to make theorems, lemmas and definitions in italics, but not examples? E.g., Theorem: This is a theorem. Example: Here is an example. So far, I am using the plain theoremstyle, i.e....
8
votes
3answers
201 views

“BigText” formating: how to adapt the fontsize to make all lines have the same width?

As in this question on stackoverflow, I want to replicate the so-called 'big text' formatting: Functioning: You give as input: the line (column) width for each line, and the content of each ...
1
vote
1answer
27 views

Why is there no page numbering?

Simply stated, I cannot figure out why this document has no page numbers. I do have the 'gobble' command at first, but I later switch to 'arabic'. Any thoughts? \documentclass[12pt]{book} \...
2
votes
1answer
20 views

steinmetz package comma problem

MWE \documentclass{article} \usepackage{steinmetz} \begin{document} $220\phase{0^{\circ}}$ $220\phase{0{,}5^{\circ}}$ $220\phase{0\phantom{{,}}\!\!^{\circ}}$ %<-- My solve \end{document} ...
0
votes
0answers
32 views

How to create multiple lines with tikz

This is my first time working with tikz. I wanted to draw the scheme in the figure. What I have from my code are the red parts and the green one as well. How should I proceed if I wanted to turn the ...
0
votes
1answer
40 views

Problem with formatting Text in Table

Here is my code. Every time I include an image into my table the text in the same row skip lines and start from the bottom, to align itself [the text] with the image. Can you please advise me on how ...
5
votes
2answers
264 views

solving systems of linear equations on the same line

I want to make this look better. When I cancel out some of the variables it doesn't cancel out well. I don't want a line to go underneath where I have E1 + E2 and as well as the others. Some of my ...
6
votes
2answers
234 views

writing equations side by side

what I want to do is I want to solve my system on the same line. I've solve for x but I also want the part where I solve for y on the right side of the system that I just solved for. Is there a way to ...
2
votes
1answer
34 views

multiple equations on same line with \midrule not extending to both equations

Hi I want to solve a system of linear equations where you can see the cancellation and I've done that but I want to know how I can put another equation to the right of what I just solved. This is what ...
2
votes
1answer
52 views

How to automatically adjust font size for listings, so it fits gives amount of textwidth?

For code listings, I often change the listings parameter basicstyle to adjust the font size so that listing fit within the container it is in. I mainly use a cell in a table to display small listing ...
1
vote
1answer
25 views

Formatting a \section* like a normal \section

I'm having trouble understanding how to format a \section* to make it look like a \section (without the section number, of course). Here is the code which the package I have to use uses for ...
4
votes
1answer
46 views

alternate row colors for only some columns

I'd like alternating row colors for only specific columns (and in a perfect world, also only a subset of rows), with a table using multirow and multicolumn. I've found that putting \rowcolor{COLOR} ...
9
votes
2answers
416 views

How can I make a “fake” subsection number?

I'm writing a LaTeX document which includes examples of how to structure another LaTeX document. However, I can't figure out a way to make it so that there's a subsection in the example that is a) not ...
1
vote
0answers
28 views

Getting matrices with line break in cell

I have a long matrix which is occupying two lines. How can I force a line break in the cell? I've seen it done here for tables: How to add two force line breaks in cell, but that solution doesn't help ...
1
vote
1answer
31 views

Embolden multiple author names in BibTeX controlled by list in .tex file

I would like to embolden certain author names in a BibTeX reference section. The list of highlighted authors should be controlled from the .tex source file. This solution shows how to do this for a ...
0
votes
0answers
50 views

How to format long numbers correctly? [duplicate]

I'm writing my master thesis and I have some trouble formatting larger (longer) numbers. Let's say I have a number (in a mathematical equation or in text): 10456 Should I use 10'456 or 10,456 or 10....
1
vote
1answer
40 views

(II) How to render a large TexForm expression from Mathematica

As a follow-up to my question of two days ago How to render readable a large TeXForm expression from Mathematica I'd like to also similarly incorporate the following two expressions: 1. \frac{2 (\...
1
vote
1answer
24 views

Roman and arabic numbering with report

I am writing a thesis using the report class. I want to have up until the introduction in Roman numberals, This is fine and I got it to work using previous questions. However, I am having trouble ...
5
votes
3answers
70 views

SageTeX: Number formatting

The following example: \documentclass{article} \usepackage{sagetex} \begin{document} \sage{0.1*0.1} \end{document} gives which is totally undesirable. A brief googling shows that Sage does ...
4
votes
1answer
20 views

Removing boldface from appendix chapters in TOC

How do I remove boldface from appendix chapter headings in the TOC? I would like the TOC to look like this: 1 First chapter   1.1 First section Appendices Appendix I First appendix ...
1
vote
4answers
70 views

Problems with variables within new command for boldface, coloring, and centering text

I am trying to type a new command that centers, boldfaces, and colors some text red. Here's what I have at the moment by tinkering and looking at some code I already had: \newcommand{\rub}{\large\...
0
votes
0answers
16 views

Page filling set of numbers

I need a large list of 4-digit Numbers in my document. They should be displayed page filling and as compact as possible. My initial attempt was simply to put each one in a line, assign a small size ...
1
vote
1answer
17 views

Customizing latexdiff default (UNDERLINE) output styling

I'm using latexdiff to highlight the differences between two versions of a tex document, using the default style which is UNDERLINE. This style formats added text in blue with a wavy underline, and ...
4
votes
3answers
62 views

Keep text with previous line - LaTeX equation and next sentence

What I am trying to do is probably very similar to the "Keep with next/previous" in MS Word. I have an equation and its description in two consecutive lines. I would like the two lines to shift to the ...
0
votes
0answers
94 views

Is there a simplified option for latex?

I am currently using markdown to write down class notes for undergraduates. currently I get something like this However, due to the limitations of markdown, and some chronic inconsistencies in its ...
2
votes
1answer
43 views

How to render readable a large TeXForm expression from Mathematica

I am using \documentclass[preprint,showpacs,preprintnumbers,amsmath,amssymb]{revtex4} \usepackage{amsmath} \newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} I'd like to know how ...
2
votes
1answer
45 views

Latex advanced scripting commands within document

I'm relatively new to Latex and I'd like to know if there is the possibility to include in the .tex document instructions to the compiler to make the compiling process a bit cleaver. For example, I'd ...
1
vote
0answers
72 views

Request: Help recreating a word template for LaTeX

I'm fairly new to LaTeX. I've tried to do this myself for one week and decided I need help. I don't think posting my own code will help, so I'll just get to the point. This (above) is the cover of ...
3
votes
2answers
56 views

How can I create multiple checkboxes next to each other?

I have been able to create interactive checkboxes using the following code by using the \CheckBox{....}\\ However I'm currently stuck and can't figure out to create multiple boxes next to each other, ...
2
votes
1answer
26 views

Landscape and table formatting

I have written a latex code, but the table turns out to be weird. Please help. Thanks! \documentclass[11pt]{article} \usepackage{setspace,amssymb,amsmath} \usepackage[tablename=TABLE,labelsep=newline,...
0
votes
1answer
19 views

Prettifying headings in sublists

I am putting together a list of exam questions, and I would like to group some of these questions because they share a common topic (for example, they are about different parts of a proof of a large ...
8
votes
2answers
5k views

How can I insert a subject line in a letter?

I am writing a letter and I would like to insert a subject line above or below the \opening. How should I do this? I prefer not to use scrlttr2 or KOMA.
0
votes
1answer
27 views

Format Equation: Add information left of the equation number

I want to write an equation and put some additional information in the equation but left of the equation number, thus \tag{} does not work. Furthermore, I would like to have the description flushed ...
32
votes
4answers
11k views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
5
votes
2answers
97 views

Spacing in integrals with LaTeX

I've been teaching myself a lot of calculus through online resources since I've been bored over summer break and will be taking AP Calculus I and AP Physics C next year. When dealing with integrals, ...
1
vote
1answer
32 views

overlapping underline

I would like to underline all occurrences of a factor that appears in a text, e. g. all occurrences of aba in text=abaababa If I use underline, I won't see clearly the three occurrences so what I ...
2
votes
1answer
57 views

MacTex 2016 Formatting Problem

I have recently updated to MacTex 2016. Following the update a mysterious extra wide margin has been added to the Inside and Bottom margin and all text and images on every page is squeezed into the ...
2
votes
1answer
48 views

Formatting idea for 2 rows table

Hey im looking for a solution to format this table in a good looking way. I like the booktabs formatting for tables that read vertically but i want this one to be read horizontally. This is what i ...
3
votes
2answers
24 views

Needing help with “Misplaced \noalign” as well as \centering

So I'm currently on the task of setting up my first table, to use as preset for future documents. While it works, and gives the result I'd like to see (except for {\centering} not working), it does ...
2
votes
1answer
43 views

Formulae booklet template

For my classes i am allowed to have a math formulae booklet prepared by myself although the maximum size is two a4 pages. I want to make it as legible and organized as possible thus i want to use ...
0
votes
1answer
24 views

\titleformat: Rule the underline

I modified \section format to add an underline. How can I reduce the space between the section name and the underline? The code I used is the following. \usepackage{titlesec} % Allows creating custom ...
0
votes
1answer
85 views

How to move the abstract to the left column?

My question is similar to this question, however, instead of a picture, I wish to move the abstract section to the left column, using same document class. Can anyone help with this? The document ...
2
votes
0answers
45 views

Small Caps not working for non-LaTeX font

I'm using a special font called 'Brandon Grotesque' (it has to be exactly that one) for a presentation based on the Beamer class. When trying to get small caps output, it doesn't work. I'm using ...
3
votes
1answer
38 views

Writing a word across the slide

I wish to represent Sparsity across the screen as in the example given below:. Here, is the frame so far: \frame{ \frametitle{What is a word?} \begin{minipage}[c]{.4\linewidth} \hspace{20mm} `...
2
votes
2answers
40 views

Minipage reset indent. How can i set again to standard?

I have the following code. \documentclass[a4paper, titlepage, 11pt]{article} \begin{document} \section{Introduzione all'astrofisica} \begin{minipage}{12cm} In astrofisica, differentemente ...
0
votes
1answer
20 views

How to include each capital of multi-word surnames into abbreviations?

I use alphabetic abbreviations in bibliography. Some authors have surnames with multiple words, such as Eric Colin de Verdiere. I write the entry as author = {E. Colin de Verdiere and A. Schrijver} ...
9
votes
2answers
183 views

How do I get mathbf by default?

I am presenting a paper (not mine) in which almost all math symbols are in \mathbf. I know I can put \boldmath in the preamble but it does not typesets it as the regular \mathbf does (upright). So, ...
0
votes
1answer
24 views

I want to change the chapter name i.e introduction to upper case and want to reduce the spacing between chapter1 and chapter name

\documentclass[12pt]{report} \usepackage{times} \usepackage[a4paper, left=1.25in,right=1in,vmargin=0.75in]{geometry} \renewcommand{\baselinestretch}{1.5} \renewcommand{\chaptername}{...
1
vote
0answers
39 views

How to correct alignment in exam class page layout?

I'm creating MCQ paper using EXAM class. \begin{center} Section II \newline Multiple Correct Answer Type \newline This section contains 10 Multiple Choice questions. Each question has four choices (...