{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
187 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} \...
15
votes
2answers
56k 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
500 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
972 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
772 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
563 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
3k 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
362 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
512 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
324 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
158 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
783 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
557 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
279 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
117 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
144 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
298 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 ...
1
vote
3answers
174 views

How to get the code on a single page [duplicate]

Possible Duplicate: How can I get \maketitle to create a separate title page with the article class? Hi I am new to Latex and am trying to create a latex document with the following preamble ...
2
votes
1answer
568 views

How to change Cell Height of table and control hline

I have a need to create a table, I have shown a MWE, its producing the table with the text I want. I have two question relating to the attached image. How to change the height of cells. How to ...
8
votes
3answers
686 views

How can I number the references in a bibliography irrespective of their order of appearance in a document?

I'm putting together a linguistics bibliography using lsalike.bib and lsalike.sty. I'm generating it by using \nocite{*} and would like the references to be numbered (but kept in the usual order). I'...
4
votes
1answer
2k views

achemso single-column-abstract and Helvetica captions

I am currently writing a paper with the achemso style package, as required by the American Chemical Society. I can produce the very nice two-column format by just doing \documentclass[journal=jacsat,...
0
votes
1answer
70 views

Float points in subsection

I have a serious problem here... There is a formating like this: \titleformat{\section} {\color{Mahogany}\normalfont\Large\bfseries} {\color{Mahogany}\thesection}{1em}{} \titleformat{\subsection} {\...
14
votes
1answer
894 views

Is there a workaround against loss of precision in pgfplots axis?

I am generating a bunch of plots automatically using pgfplots. For some datasets the span of data in one axis (y) is relatively small (relative to the absolute value) and therefore pgfplots when ...
-1
votes
1answer
150 views

How to bring equation into the middle of the line

I am trying to put this below equation in latex and also I need it in the middle of the line. PPV =TP /(TP + FP)
1
vote
1answer
472 views

How to represent a data set in latex?

I have below data.I would like to upload into latex doc in the below format. Length Left Right Bottom Top Diagonal 214.8 131.0 131.1 9.0 9.7 141.0 214.6 129.7 129.7 8.1 9.5 141.7 214.8 129.7 129.7 8....
6
votes
3answers
2k views

Typesetting sparse matrices with long entries

When typesetting a (square) matrix with arbitrary dimension but repeated entries (in particular null entries), I make use of the \cdots, \vdots and \ddots commands. When the entries of the matrix are ...
2
votes
1answer
223 views

Comment in a box and reference abilities

I am aware in Latex you can box text, which is what I need to do. However can you also label this box for reference, and similarly give it a caption, like you would for a photo? An example of boxing ...
1
vote
2answers
312 views

I want no idention after \newpage

I defined with \parindent=0cm that there should be no idention after new paragraphs. But the very first \chapter and every \newpage is idented! I don't want to have that, so how can I work around? ...
4
votes
1answer
79 views

Double index in the same documents

I have a question about a problem that I am facing. I have a document composed by two different and independent parts in two where the second parts refers to just some elements of the first one. Both ...
5
votes
2answers
410 views

Converting all numbers in document to set number of decimal places

I have a table which I need to automatically format all numbers to two decimal places. Is this possible? Or do I need to format the entire document? EDIT: I have applied the code suggested in an ...
13
votes
1answer
397 views

How does one implement drop caps in plain TeX?

How might one implement a simple drop cap in plain TeX without additional packages?
2
votes
1answer
153 views

Creating table of images and only one col having one picture to span all rows

I am just adding lots of images into latex and although I know how to apply images to a table, this one is slightly tricker. I have two columns. The first needs a single image which spans all rows, ...
5
votes
2answers
458 views

How can I align some text with a logo?

I am trying to right-align some text with a logo, i.e. I would like to place some text to the left of a logo, and centre this text vertically with respect to the logo. I’ve attached a pdf to be more ...
5
votes
1answer
5k views

In Lyx, how to change the “Part” section to “Chapter”?

I am using the default Lyx document "article". My sections range from "Part" to "Subsubsection". When I compile my pdf, I would like to replace "Part 1 Title1", "Part 2 Title2", etc by "Chapter 1 ...
8
votes
4answers
405 views

Document layout, combining text and figure panels

This is a question so general, I couldn't easily find an archived post which directly addressed it. I am interested in using LaTeX to design a one sided sheet containing figures and small amounts of ...
8
votes
2answers
3k views

How to style equation label and reference differently? [duplicate]

Possible Duplicate: Changing the apperance of equation numbers with amsmath I need to be able to make the labels of equations bold, but at the same time I need the citations to those equations ...
5
votes
1answer
2k views

\spacedlowsmallcaps in caption label

How i can make the labelfont also in \spacedlowsmallcaps in addition to sans serif and small ? \documentclass{article} \usepackage{microtype} \usepackage{caption} ...
1
vote
1answer
807 views

Using a new environment to make a title bold, large, in a different font, and red [closed]

I have what I thought was a simple thing to do in latex. I need to take several titles and make them LARGE,bold face,in Bookman font, and red in colour. Is the easiest way to accomplish this to use a ...
6
votes
1answer
4k views

How does \headline work?

I understand that TeX uses \headline to place headers. If \headline did not exist, how would one implement a simple version of the same? Additionally, where might one find simple documentation of ...