{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

7
votes
1answer
187 views

Mimic a calculator screen

It was recommended that I post this as a new question. Sometime back, this marvelous solution was posted on this site. \documentclass{article} \usepackage{tikz,xparse} \ExplSyntaxOn \...
5
votes
3answers
258 views

Making tables more prominent

I am working on a long LaTeX document with several tables, which contain mainly text, or text and numbers. The tables are a \begin{table} ... \begin{tabular} environment. It is often difficult to see ...
6
votes
3answers
12k views

Formatting table border and text alignment in LaTeX table

I have the following table in the .tex file: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Distribution of Number of Injured Non-...
33
votes
2answers
19k views

How to style text in hyperref \url?

I want to set color, font and similar style attributes for the text in a \url from the hyperref package. How do I go about doing it? All I have found are comments saying that I probably don't want to ...
9
votes
1answer
198 views

Align/avoid numeration and labels in a custom biblatex format

I need list references with a custom format, with a label showing the type of entry (@article, @book, etc.) and labeling fix/variable fields in a tabular environment. I have successfully obtained ...
3
votes
2answers
135 views

How to include a long underscore before the \question command?

i am working with a simple question but i can't include underline before the \question. Code documentclass{myclass} \newcommand{\line}{\begin{tabular}{p{2cm}} \\[-.35em] \hline \end{tabular} } \...
2
votes
2answers
4k views

Set default Koma script font to Times [duplicate]

Possible Duplicate: KOMA-Script: change font of sectioning headings to serif I am using scrbook document class but want to change the default font to Times. However when I add: \usepackage{...
5
votes
1answer
1k views

Formatting – title with underline and box around paragraph

Can you help me please with formatting? I like this format: How can I define this title with grey underline (width of all page)? Font is sans serif (Arial). And how can I make grey box around some ...
5
votes
1answer
2k views

bigger parentheses in equations

I have the following TeX equation: r = (I_n - (.85) M^T)^{-1} (\frac{1 - (.85)}{5}) \cdot 1 \\ I want bigger parentheses around the term (1-(.85)/5), how can I achieve this? How can I get large ...
10
votes
1answer
229 views

Putting marks for split footnotes

Say, that you have a footnote which is printed in page 1 and 2. How can you put a mark, say $\rightarrow$ at the end of the footnote text in page 1 and at the start of the footnote text on page 2, ...
3
votes
0answers
559 views

Is it Possible to Obtain Rudin-Style LaTeX Document Format? [closed]

I'm trying to obtain some format settings (or copyable code) for LaTeX documents. Above is a screenshot of Walter Rudin's Principles of Mathematical Analysis (a book I'm sure many people here have ...
6
votes
1answer
2k views

Outlined characters in Beamer

Following Outlined characters, you can make selectable outlined text using the contour package. For example, the following writes "Text text text contour text", with "contour" in green with a red ...
5
votes
2answers
902 views

Troubles with number formatting in groupplots

This question has already been answered for axis here but I have troubles to apply the approach to groupplots (please see %additional code in MWE). If I uncomment the %additional code the code is ...
7
votes
1answer
298 views

How to highlight important pages in glossaries page number list

In some books, the keywords page not only has a list of pages the keyword was referenced, it also bold or emphasize page numbers where the keyword was defined or explained. How do I do that with ...
8
votes
1answer
239 views

How do I adjust the placement of descriptions I've made alongside enumerated statements within a boxed theorem environment?

Basically, what I'd like is to have an elegant command that would enable descriptions (commutativity, associativity, etc.) made alongside enumerated statements to be aligned to the far right side of ...
4
votes
2answers
384 views

Font setup in header (ConTeXt)

I use \setupheadertexts [][section][chapter][] to get the section- and chapter-title in the header of the odd- and even pages. How to change the font, like its size, or making it bold or italic? ...
3
votes
1answer
757 views

pgfplotstable selecting numeric columns or multiple columns by index

Hi two questions in one: I haven't been able to figure out the answer from the manual: I have a table of data with strings in the first column: I'd like to apply some key-values (e.g. fonts by sign)...
0
votes
2answers
541 views

Formatting LaTeX-dump from Mathematica equations for A4-paper without manual adjusting?

I asked this question here in Mathematica.SE but they encouraged to ask also on this site. How can make this writing process easier from Mathematica to LaTeX? Please, note that I have a lot of ...
1
vote
1answer
2k views

Formatting apalike-url.bst link to reference

I am using apalile-url.bst to get APA references formatting, but I want to format the reference link when I am using a URL, for example when I reference a URL I get. this is a url reference [...
5
votes
3answers
276 views

Possible CSS type features?

Hi I am doing a project for my 10th grade Graphic design class and we have to make up an inspirational type thing with the emotion words Bold, in a bigger size and capitalized and I was wondering if ...
3
votes
1answer
423 views

fixed leading 0's with pgfmath

I want to calculate a time being printed using pgfmath. I have some code similiar to this: \pgfmathparse{int(mod(\x,60))}\pgfmathresult O'clock but if the result is between 0 and 9 my time being ...
2
votes
0answers
76 views

How to acknowledge LaTeX and its community in a report/manuscript/dissertation/book? [duplicate]

Possible Duplicate: What is best way to mention that a document has been typeset with TeX? I did my thesis with LaTeX, even the figures, they were all done with TikZ !! I would like to ...
4
votes
1answer
185 views

How do I format the document? [closed]

I have a document. This is my code \documentclass[a4paper, 12pt]{article} \usepackage{fouriernc} \usepackage{amsmath,amsfonts,enumerate,tabularx,calrsfs,esvect, multicol} \usepackage{graphics} \...
14
votes
2answers
54k views

How do you make numbered equations in latex?

I would like to put in a code that automatically assigns a number to the equations in my documents preferably aligned on the right hand side. How can I go about this? \documentclass[a4paper,11pt]{...
11
votes
1answer
495 views

Text in an equation

This is best explained by example. Suppose I have the following: \[ \begin{align*} C_3 \rightarrow 6 automorphisms\\ C_4 \rightarrow 8 automorphisms\\ C_5 \rightarrow 10 automorphisms ...
2
votes
1answer
135 views

grouping data by columns

I have these three graphics all in one line. Now I would like to have 3 columns with their respective data aligned underneath them (the alignment underneath the graphics does not really matter). This ...
4
votes
2answers
6k views

Displaying three graphics on one line

I am trying to display 3 graphics on one line (3 cycle graphs each with a caption underneath). How can I do this? Currently I have: \begin{figure}[h] \includegraphics[width =3cm]{c3.jpg} \caption{$...
2
votes
1answer
966 views

Homework template

I've been using this homework template I found online that is pretty light. I am very new to using LaTeX, and although I find writing basic mathematical expressions easy, some of the cooler more ...
1
vote
1answer
154 views

Aligned equations

I want to have aligned equations going vertically down a page. How do I get this style? Instead of the following: \[ x_1 + x_2 + x_3 x_2 + x_4 + x_5 \] What how should I do this?
5
votes
1answer
761 views

Generate box with content in header

Halo everyone, I intend to create the one as shown in the attached photo as the header of my document using TeX but I can't seem to get it right. Either my box are distorted or they can't be balance ...
8
votes
1answer
555 views

Row with invisible cells

Is there any easy way to obtain something like this in LaTeX? My guess was to try to make the first and third cell of the first row invisible, but then I lose the right and left border of the Main ...
6
votes
1answer
2k views

Biblatex - \DeclareFieldFormat

I'm writing a thesis in french law and I was able to, after many, many hours of hard work, customize some entry type to fit my needs. Here is my example of my @BOOKLET that I use for legislation: \...
1
vote
1answer
361 views

How to split with chapter, section, … Titles in the index part?

Maybe the title isn't clear. In fact, I'm taking note during my course, and sometimes, teachers said that a thing is a pipe (tip, stuff to know) for the examination. Since the tex have a few of them,...
6
votes
2answers
509 views

How to define, once and for all, the size of the area (for an epigraph following a chapter)?

I am using 'memoir' for a thesis, and I have chosen the vertical space between a chapter title and the following section to be exactly fixed, \afterchapskip being 120pt for each new chapter. What I ...
7
votes
1answer
323 views

What is a good practice to achieve vertical placement? (e.g. a Titlepage)

My titlepage looks right now like this: using this code: \documentclass[a4paper,11pt,oneside,titlepage,german,final]{scrreprt} \usepackage{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{...
3
votes
2answers
156 views

How can I customize this code for signature line to fit a specific format?

Found a nice piece of code here dynamic signature/date line and modified it to this: \newcommand*{\DateAndSignature}[1]{% ..\newline \par\noindent\makebox[2.25in]{Musterstadt, den}{\hrulefill} \...
5
votes
1answer
7k views

sets and enclosing braces

How can I denote a set of numbers with curly braces around them (curly braces are usually the standard for sets in mathematical textbooks). I tried the following: $d={3, 2, 2, 1, 1, 1}$ Tex ...
6
votes
1answer
771 views

Multi line header for pgfplotstable

I have a dataset in csv file format that I'm loading into pgfplotstable. I can't change the format of the original csv, and being financial data it has a column of item names and two or three ...
9
votes
2answers
4k views

List of Symbols?

I'm trying to make a list of symbols that looks a lot like the one shown here But I'm having some trouble making 2 columns that are spaced in that manner for the 2 pages I have for my list. Can ...
6
votes
4answers
4k views

Side by Side matrices

How can I get matrices that are side by side? Currently I have the following: \[ \begin{pmatrix}[ccc|c] 1&2&0&0\\ -1&1&2&0\\ 1&0&1&5\\ 0&-2&1&4 \end{...
3
votes
1answer
119 views

Prevent odd break line in pagenotes

Using memoir class, pagenotes package. Here is a screenshot of the problem: Number 6 should follow the rest of the text, hence be in the following page. This is the code I'm using: % Document ...
0
votes
0answers
61 views

How to format a block of source code? [duplicate]

Possible Duplicate: Package to indent and syntax highlight C++ code I want to format a block of C source code using TeX, how can I accomplish this work? for example: int main() { printf( ...
5
votes
3answers
2k views

How to make an observation numbering in bold?

I'm writing a paper in LIPIcs template. \newtheorem{observation}[theorem]{\textbf{Observation}} \newcommand{\robs}[1]{Observation~\ref{#1}} \newcommand{\rfig}[1]{Fig.~\ref{#1}} \newcommand{\rlem}[1]...
7
votes
3answers
549 views

Highlight equations by temporary changing the formatting of their number

I am writing a long paper having 100+ equations, and want to highlight a few key equations. Since the journal won't let me use boxes around equations, I am trying to have their label being typeset ...
7
votes
2answers
277 views

Consistent formatting of short index page ranges

MakeIndex allows for special formatting of ranges of two, three, or more than three consecutive pages within index entries. One may (with the help of .ist style files) change the range delimiter (by ...
10
votes
1answer
116 views

Forbid page ranges in index

I'm using imakeidx with makeindex and an .ist file. How can I forbid makeindex from creating page ranges (e.g. 3--5)?
1
vote
1answer
1k views

Prevent the overflow of text

I'm having some Yiddish text overflow it's box in a XeLaTeX document. I suspect there is a simple command to stop this from happening. Does anyone know an easy solution or do I need to make and post a ...
4
votes
1answer
143 views

An environment with custom justification

I would like to create an environment called "question" with one argument (being the question number) with a certain alignment/justification. How might I define one so that it comes out like how it ...
6
votes
1answer
291 views

How to “get” the size of the section header

I've got to format some text in the style of the section header. So what I would like to do is sort of "get" the parameters that define the section header (i.e. size, formatting, fontstyle) and apply ...
2
votes
0answers
85 views

Conditional coloring in LaTeX [duplicate]

Possible Duplicate: Parametrize shading in table through TikZ Is there any package that provide conditional coloring in LaTeX ? I would like to reproduce what Excel does with its conditional ...