{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

4
votes
1answer
41 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} ...
8
votes
2answers
370 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 ...
0
votes
0answers
12 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
38 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
22 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
66 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
68 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
14 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
61 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 ...
1
vote
1answer
41 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
44 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
69 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
54 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 ...
2
votes
1answer
23 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 ...
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
95 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
31 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
53 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
44 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
37 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
178 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 (...
0
votes
0answers
17 views

Icons for different reference types in beamer [duplicate]

I have listed my references in a beamer presentation using bibtex. How can I get an icon (book icon , online icon, etc.) corresponding to the references? That is, I need a bibliography as shown in ...
-1
votes
2answers
64 views

How to fit long equation into a cell of table and how to use table in general

I am using tabular for the first time and found it to be unbelievably difficult to use. But the primary goal for now is to fit a long equation into the cell of a table \pagebreak \section{List of ...
3
votes
1answer
69 views

How to typeset shell like output in Latex

I'm trying to achieve a output as shown below with latex NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 32G 0 disk ├─sda1 8:1 0 99M 0 part /boot └─sda2 8:2 0 31,9G 0 ...
1
vote
1answer
51 views

Issue with Chapters Being Included in List of Figures

I was editing a table of contents earlier this week and, thanks to this forum, was able to get most of the formatting down. This post is still about the table of contents, but now it is in regards to ...
-1
votes
1answer
114 views

hi guis iwant to help me [closed]

indeed help me in this problem when I write new subsection enter as shown in table belwo
4
votes
3answers
34 views

Formatting this particular array

I'm doing an assignment for my optimization course and I want to present my problem statement in LaTeX the same way my lecturer has in his notes, but I'm not sure how to go about it. This is an ...
5
votes
2answers
654 views

bclogo page breaks

I am using the Bclogo package http://www.ctan.org/pkg/bclogo. I have created environments for lemmas and proofs with it. The proof was too big to fit on the bottom of the page, so it just inserted a ...
4
votes
2answers
99 views

Overlapping over/underbrace

I wanted to do something like this: How to have overlapping under-braces and over-braces The example given is really great, so I tried it on my own: what I was hoping to achieve is to represent a ...
2
votes
2answers
51 views

Help with algorithm2e formatting

recentely I've got into a bit more advanced LaTeX formatting, i.e algorithms. My package of choice is the algorithm2e package, but I'm having some difficulities operating it. So I've wanted to create ...
3
votes
2answers
29 views

change format of number in \ref

I'm using a custom counter with a newenvironment for the first time and don't quite understand the nuances. The only problem I have so far is that when I use \ref it gets the number I want but not the ...
1
vote
1answer
127 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow.