{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.
3
votes
1answer
84 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 ...
30
votes
7answers
9k views
Long underscore in LaTeX
In LaTeX, how would I make a long underscore?
For example,
Name _______ Signature _______
3
votes
1answer
55 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
40 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
51 views
Problems in customizing Memoir page size
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
41 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 ...
1
vote
2answers
61 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
76 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
71 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{ ...
2
votes
1answer
103 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 . . . . . . .
...
4
votes
1answer
34 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
52 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
29 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 ...
4
votes
0answers
74 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
...
1
vote
1answer
74 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 ...
6
votes
1answer
659 views
fancy chapter title page
How can I have a chapter title page like the following?
Note that, I'm using book document class
1
vote
1answer
80 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 ...
15
votes
1answer
7k views
Can a table include a horizontal dashed line?
In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line.
I have found the package dashrule via this answer, but this only ...
2
votes
1answer
39 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 ...
3
votes
1answer
114 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
197 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
81 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
53 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 ...
42
votes
1answer
17k views
What's the correct use of \author when multiple authors?
Working on a project, the article we are writing is written by me and someone else. How should I fill the \author?
What about \author{LASTNAME1, FIRSTNAME1 \& LASTNAME2, FIRSTNAME2}? It doesn't ...
1
vote
1answer
82 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 ...
12
votes
5answers
923 views
How can i add a “field” for handwritten text?
I need to add a bunch of fields for a handwritten text
to my document that look like this:
Your Name ___________
Your Age ___________
As an example, I can show you the form that I have to ...
9
votes
3answers
1k views
Underline my name in the bibliography
For several documents I'm preparing, I need to highlight (or underline) occurences of my name within the bibliography.
Is there an easy way of doing this?
1
vote
1answer
51 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}
...
10
votes
3answers
5k views
Non italic text in theorems, definitions, examples
What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes ...
5
votes
1answer
139 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 ...
18
votes
1answer
172 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 ...
3
votes
1answer
94 views
How can I fix the formatting of my axis using pgfplots so the axis titles aren't on top of the numbers?
How can I offset my ylabel so it doesn't smudge with the numbers?
code
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[
scale=1.8,
xmin=-15,xmax=15,xlabel={Current $mA$}, ...
3
votes
1answer
62 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
57 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 ...
18
votes
2answers
3k views
number format in pgfplots axis
How can I change the type of the decimal/thousand separator from the american one to the european one? More precisely, I want:
"1000" to be written as is, instead of "1,000"
"0,1" instead of "0.1"
...
6
votes
1answer
68 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 ...
0
votes
0answers
51 views
Move address to the right and recipient to the left in a letter
I wanted to try to write letters in LaTeX but the problem about the layout of the letter is the fact that the sender's address is on the left and the recipient on the right but in French it is ...
1
vote
2answers
93 views
Tables together
I want to put the following table together with a other similar table in two columns
\begin{table}[h]
\centering
{\fontfamily{ptm}\selectfont{
\rowcolors{1}{}{gray!20}
\begin{tabular}{cc}
...
3
votes
1answer
90 views
Formatting the bibliographic references
What should I change in order to make my bibliographic references (see latex code bellow), look like the ones attached in the form of image bellow? If you run the code you will see that
only the ...
13
votes
2answers
913 views
Conventions for formatting scientific units?
I would appreciate some guidance on how to format units that incorporate SI, molecules, and text.
Right now I am formatting the letters in chemicals or names as 'text' and the SI units, sub/super ...
1
vote
0answers
38 views
Space between a|b in math mode? [duplicate]
For a context free grammar I need to write:
A -> a | b
My code for this is
$ A \rightarrow a | b $
however this gives me something like
A -> a|b // wanted: a | b, note the space before ...
0
votes
0answers
74 views
Change font of subsection in the Table of Contents [closed]
I changed my entire document to sffamily font, and the only thing that still appears in the default font are the subsections in the Table of Contents. In the text, subsections are the correct font. ...
2
votes
1answer
95 views
How to define HTML keywords in \listings
I'm working on the implementation of a HTML5 code style for \listings.
Currently I have the problem that there are different ways to define HTML tags. In my example, I don't get /p in ...
1
vote
1answer
94 views
Typeset a number in hexdecimal format (preferably math mode)
Is there a macro for formatting numbers in programming style 0x hex notation, e.g. instead of -1155484576 have 0xbb20b460. I would like to embed these numbers in a math mode context.
E.g. if I just ...
5
votes
1answer
92 views
How to use alsolanguage in \listings package?
I defined keywords for the JavaScript programming language and HTML.
I have read that it is possible to use the keywords of both languages in a \listings code snippet. But in my example, the ...
2
votes
1answer
111 views
General Formatting Problems
I have started to learn LaTeX on my own, but as you will see the general formatting has lots of mistakes. I have tried my best but would really appreciate some help, here is the text:
...
1
vote
1answer
51 views
Consecutive longtables giving “…alignment error…”
in the appendices of my thesis I have two long tables for which I use the longtable package. Separately they work fine, no errors, but when I have after each other I get errors such as:
Extra ...
3
votes
1answer
119 views
Omit hanging indent in bibtex
I use \bibliographystyle{alpha} with bibtex (not biblatex). The document class is scrreprt. The output looks like
[Abc07] Example Abc. The title and all other stuff.
dddd. 2007.
[Bcd08] Ex ...
5
votes
1answer
938 views
Changing the font for “alert” in beamer
I would like to change the behaviour of \alert so that the text is still red but now boldfaced, say. How can I do this? I have Googled, but all I can find is how to change the colour, as in Changing ...
1
vote
2answers
131 views
Can anyone solve my error and make the long multiline equation multiline please?
In case it matters, I'm using win edit as editor.
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}\usepackage{amssymb}
\textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm ...


