{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

12
votes
2answers
257 views

How to have a number directly under a decimal point?

I am trying to write a number in quaternary form and would ideally like to show this by having a four underneath the decimal point. I've searched around, but can't figure out how to do this so any ...
1
vote
1answer
120 views

How can dramatist verse speech prefixes be put on the same line as speeches?

Using the verse environment from the dramatist package, I would like to have the speech prefixes on the same line as the speeches, as they are for the prose environment. There are a number of hooks ...
2
votes
0answers
90 views

Produce parentheses around number of equation [duplicate]

Is there any direct command which can help me to put the number of a equation in the parentheses, for example if I write the following: \begin{equation} \label{eq:1} this is my equation ...
3
votes
1answer
192 views

Pgfplots: How to make the plot exceed the axes

I am plotting a spike using pgfplots. I want to make the y-axis until (4) only. However I want the plot of the spike itself to continue beyond the y-axis (say until 10). Is there a possible way to do ...
7
votes
2answers
191 views

Making a lattice with numbers on vertices

Anyone who is familiar with the problem of counting up/right going paths in a rectangle from bottom left corner to upper right corner knows that one way of doing this is doing it by recursion. I want ...
5
votes
1answer
257 views

format special words in text

Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold ...
3
votes
1answer
240 views

Displaying a probability tree on beamer

I would like to modify the code here : http://www.texample.net/tikz/examples/scenario-tree/ in order to make it fit on beamer page. The code works on a regular article page, but the tree is way too ...
6
votes
2answers
126 views

How to create multicolumns list environment with the package 'enumerate'?

Let us consider The following example \documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate} \item Which of the following numbers is the largest ?\\ ...
2
votes
1answer
441 views

Change axis number format for external tikz file

I'm using \input{filename.tikz} to include .tikz graphs created by matlab2tikz in my LaTeX document. As shown in a comment on this question it is possible to change the plot marker size when the ...
0
votes
1answer
645 views

Simple Draw in Latex

Hi I want to draw this simple figure in latex can anyone please help me?
0
votes
1answer
351 views

How to change the font of URL in the bibliography [duplicate]

When using the natbib package the URLs are printed and formatted in the bibliography in a different font from the rest of the document which looks nasty i.e. monospace Typewriter. I am having ...
3
votes
1answer
166 views

How to include Appendices' name in LOF?

I would like to know how to show Appendices' name in LOF if they contain figures. % % % % % % % % % % PACKAGES % % % % % % % % % % % % % \documentclass[11pt,a4paper]{report} ...
3
votes
1answer
802 views

Appendices' sections at subsection level in TOC

I would like to know how to show appendices' sections (B.1, B.2) at subsection level in TOC. MWE: % % % % % % % % % % % % Packages % % % % % % % % % % % % % % % ...
2
votes
1answer
153 views

Formatting a conditional table of coefficients in LaTeX

I'm totally blanking on how to format this, or even what to use as a search term to see if anyone has asked about it before. I would like to make a conditional table of coefficients (ie. two tables ...
3
votes
2answers
668 views

How do I create a simple page of homework in LaTeX?

I've been frustrated with using Microsoft Word for typing out equations, so I've decided to switch over to LaTeX to write all of my homework with. I've never used LaTeX before to typeset anything, so ...
11
votes
4answers
417 views

Is there a ready solution to typeset a diff file?

In a text about Git I want to typeset diffs similar to this visualization: Commit details on GitHub. Is there any ready-made solution to that, especially the coloring of the diff lines? (In other ...
2
votes
2answers
197 views

how to control font and paragraph formatting in margins

i'm having a hard time to figure out how to control the exact appearance of margin text (such as is output by the \marginpar command). i'm using XeLaTeX with packages such as geometry, fontspec, ...
3
votes
1answer
141 views

biblatex-juradiss and german juristic commentaries

I'm writing my master’s thesis and I'm having troubles formatting citations the way I need to. I've tried to modify the solution given in this thread but without success. I'm using biblatex with ...
5
votes
1answer
4k views

Footer in Beamer

I found in this related topic Add Footer Text to All Slides in Beamer a nice code for footer in beamer with the Frankfurt theme. \setbeamertemplate{footline}[text line]{% ...
2
votes
1answer
385 views

Formatting capital letters in math mode

This is perhaps a simple question, but I would like to print a capital I in my LaTeX document (beamer specifically) inside a $...$ construct. I would like my I to appear more substantial by having ...
3
votes
1answer
355 views

In “math-mode line” non-math type

I'd like to type non-math text inside of the bracket math text lines, or know of a better way to do what I'm trying to do. In the following, I don't literally type \nomath. I don't know what I need ...
8
votes
1answer
376 views

Fit four authors across on one row in “sigplanconf” style?

Is there some hack out there to make it possible to fit four authors across in one row in the sigplanconf class? No matter how short each author's name, affiliation, and email is, by default the ...
1
vote
1answer
76 views

Problem with ragged lines

Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
2
votes
0answers
121 views

Problems in customizing Memoir page size [closed]

I have followed the suggestions proposed in: Customizing Page Size in Memoir to customize Memoir page size, and although the page size changes, the text block doesn't fit the page. It seems that the ...
4
votes
1answer
119 views

How do I stop the text on my flashcards from overshooting the area?

This is not using the flashcards class because that does not print the cards in a way that I want them to be printed. That is why it is a modified article class. I have recently tried a set this up ...
12
votes
2answers
17k views

\Rightarrow with text above it [duplicate]

When using the command \Rightarrow is there any way to put text above it? I have tried \overbrace but is there a way to do it without this?
2
votes
3answers
222 views

Equation spacing

Hi if I have multiple equations on each line is there a better way to space them out on the same line other than using /;? \documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} ...
1
vote
2answers
133 views

Formatting of an array of equations (left alignment)

I have the following text in a matrix environment. Is there a better way to format it, say with each column being left ordered, and how can this be done? $$ \begin{matrix} \Gamma^{i}_{\mbox{ ...
4
votes
1answer
61 views

Two “glossary” elements being generated on my first glossaries page [duplicate]

I'm successfully generating a glossary, but for whatever reason I'm getting a rogue "Glossary" element before my first glossary entry, but after my Glossary heading. Here's the relevant example code: ...
3
votes
1answer
112 views

How to make the hyphen show right in the middle of the paragraph title and its content

I am writing paragraphs that seldom require titles. I'd like the paragraph name to be separated from the actual content with a symbol. It can be an hyphen or whatever. My issue is if I type: ...
1
vote
1answer
129 views

vbox overflow when using TitleGM causing a blank page to preceed the title page

I'm getting a blank page that precedes my title page, and I suspect that it is due to the vbox overflow warning that I'm getting. The problem is that I don't know how to properly adjust the vbox ...
7
votes
2answers
161 views

Index with a combination of one and two columns

I am using the following to create my index file. heading_prefix "{\n\\bfseries\\color{black} " % insert in front of letter heading_suffix "\\hfil}\\nopagebreak\n" % append after letter ...
2
votes
1answer
258 views

Appendices at section level in TOC

I would like my appendices to appear in TOC at section level instead of at chapter level. Like this: Appendices A My appendix 1 . . . . . . . B My appendix 2 . . . . . . . ...
1
vote
1answer
122 views

How To Fill Leftover Space

I am making a fairly space intensive LaTeX "cheat sheet." Right now, I have added a single table, as so: However, there is a large gap to the right of this table that I would like to fill with a ...
1
vote
1answer
339 views

Increasing vertical distance between bibliography items [duplicate]

Numeration in the bibliography looks like 1. Book1 2. Book2 I want to change it to [1] Book1 [2] Book2 Also, I would like to increase a space between separate item. I'm using the ...
19
votes
2answers
2k views

Colored underbraces for annotating equations

I am trying to implement my previous Powerpoint presentation in beamer. I have a figure like I want to create something like this in beamer. I wrote a equation as follows but I couldn't write the ...
2
votes
1answer
68 views

Customize how the reference numbers appear in the bibliography when using biblatex?

I wish to customize the font for when printing the reference numbers (the to the left of all references, commonly surrounded by brackets) in the biblatex package. I hope that there is some command ...
4
votes
1answer
172 views

How Do I Indent My Proofs in the Following Manner?

I'm interested in indenting my proofs so that they look like this. Please note that the alignment of the word "proof" with the word "theorem" is significant. However, Google does not appear to yield ...
3
votes
1answer
828 views

How to change bibliography style from [1] to 1

I know that several people have already asked this question, but for some strange reason the suggestions are not working. I have tried inserting: \makeatletter \renewcommand\@biblabel[1]{#1.} ...
3
votes
2answers
676 views

Section title with subtitle

I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
4
votes
2answers
145 views

Limit scope of formatting to within command

I wanted to generate a cover page for a tech report and so put the following in my preamble \makeatletter \newcommand{\coverpage}{\onecolumn \centering \large \thispagestyle{empty} ...
4
votes
1answer
215 views

Command for the abbreviated author [duplicate]

I'm writing a beamer document, and using the following definition for author \author[O. Castillo]{Oscar Castillo} As far as I know, \@author returns the value Oscar Castillo Question Is there a ...
1
vote
1answer
109 views

Making Back-Referencing More Pretty

The question Back-referencing in LaTeX was marked a duplicate, so I can't post to that thread. Nonetheless, I found the code provided there by Ryan Reich to be a good learning exercise. His solution ...
2
votes
1answer
182 views

Is there a theorem style with slanted headfont?

I would like to create a theorem style with slanted text in heads. What's the way? I tried with the thmtools package by \declaretheoremstyle[headfont=\textsl]{slantedhead} ...
22
votes
1answer
374 views

Sloppy \left and \right?

The \left and \right commands often produce improvidently large delimiters. It almost always looks better to use delimiters that are just slightly too small than delimiters that are too large. With ...
6
votes
1answer
388 views

Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath

I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent-free notation. siunitx seems to be able to do ...
3
votes
1answer
127 views

Can we have viewer specific text in a pdf generated by pdfLaTex?

I am wondering if we could have a pdf file, which can tell what viewer its being viewed with. I was looking for some tex command, which says something like: If viewer is Acrobat, print "Hi You are ...
4
votes
1answer
181 views

Overlapping columns in xymatrix

I have the following diagram: \documentclass{article} \usepackage{xypic,amsmath} \DeclareMathOperator{\coker}{coker} \DeclareMathOperator{\im}{im} \newcommand{\subU}[1]{\left.#1\right|_U} ...
4
votes
1answer
152 views

Building chemical “ICE” tables with tabular environment

I am starting to write my chemistry lab reports out in LaTeX, but keep getting stuck on the "ICE" tables (see the LaTeX example below). I can't figure out how to get the + and \rightleftharpoons in ...
6
votes
1answer
1k views

section numbering format

I am trying to format a legal document so that it follows this format. Article 1. 1.01 First section bla bla bla 1.02 Second section bla bla bla etcetera. I tried using this to get ...