{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

1
vote
2answers
22 views

Using fancyhdr, how to bump up minipage beneath line and more evenly extend line?

I have a resume that looks pretty good with exception to the header, and the header code is below. Basically, it's a name over a line, with address under the line on the left and contact info under ...
3
votes
1answer
57 views

How can I make “headings” inside a figure?

I have a figure that is built up of multiple parts and I want each part to have a "title". How can I do that in a way that looks nice? Right now I am just using \textbf for the "titles" and everything ...
2
votes
0answers
31 views

using moderncv, how can I get rid of an empty line below address [duplicate]

I am using moderncv 2.0.0 2015-07-28 to build my resume, but I got an empty line below address, how can I get rid of it? \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} ...
2
votes
1answer
22 views

How to list all items defined in a predefined enviroment

Code is: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{fancyhdr} \usepackage{pgfplots} \usepackage[letterpaper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} ...
3
votes
1answer
43 views

Formatting a Custom Sidebar dimensions to avoid clipping

I'm trying to create a custom sidebar to have in parts of my presentation, and would like to get some help sorting out some of the problems I've encountered. First, the yellow box there is where the ...
3
votes
1answer
39 views

BibLaTeX - old style number for page(s), and keeping “p.” and “pp.” in bibliography

As mentioned in title, any way to make page number old-style, and keeping the pagination ("p." and "pp.")? This is I have done so far: My MWE code: % !TEX program = xelatex \documentclass{article} ...
0
votes
1answer
81 views

Number formatting in the table with spreadtab

I am using spreadtab for the calculation in a table. \documentclass[a4paper]{article} \usepackage{spreadtab} \usepackage{numprint} \usepackage{xstring} \renewcommand\STprintnum[1]{\numprint{#1}} ...
129
votes
10answers
36k views

Compile a LaTeX document into a PNG image that's as short as possible

I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
1
vote
1answer
28 views

inline and vertical enumeration in the same document

I want to implement both inline and vertical enumeration in my document. I know that inline enumeration can be achieved using inline option of enumitem package. In addition, I found this question ...
1
vote
2answers
50 views

spacing between rows in a table

I have a table here. But it does not look right. First thing is regarding the spacing between rows. I need to increase the spacing. Second thing is at row 25, the number somehow exceeds the column. ...
1
vote
2answers
76 views

Fit an equation into an element of a vector on one page pleae

I am trying to fit the equations into a vector called Fs I can not view all the equation on one pdf page \begin{eqnarray*} \mathbf{Fs} &\mathbf{=}& \\ &=&T^{-1}\left[ ...
0
votes
0answers
28 views

create a “notes” page in article document class

I am wondering if it is possible to place my footnotes not at the end of a page (as usual) but in a separate page at the end of my whole document. I am writing my report using article document class ...
0
votes
1answer
50 views

How to use .sty in writting in latex?

I need to write my thesis in latex for which we got .sty file (I didn't write it myself). I have no clue what I need to do to or need to write in .tex file to ''activate'' those styles. If I ...
3
votes
2answers
79 views

Numerals to ordinals in JabRef jstyle layout file

I have created a .jstyle layout file for JabRef (I am using JabRef version 2.11.1) for formatting citations for the journal, Florida Entomologist (FL_Ent). Although the current (25 March 2015) ...
3
votes
1answer
48 views

Extra word spacing in the caption of a figure

I cannot figure out why there is extra word spacing in the caption. Possibly because of subfigures? Thanks for any help. \begin{figure}[H] \centering \begin{subfigure}[h]{.45\textwidth} \centering ...
2
votes
0answers
36 views

How do I increase the white space between a section's title and the page header?

I would like something like this: I'm using article document class and package geometry, but I think I'm missing some definitions for the sections. I'm new at this and would like to write my masters ...
9
votes
4answers
370 views

Using \textbf vs. \mathbf in Math mode

Is there any preference for using \textbf or \mathbf in math mode; or \textbf works exactly the same as \mathbf in math mode? I know for example, the \textit does not work in some cases in math mode, ...
1
vote
1answer
39 views

Getting text to appear on the same line

\paragraph{*} So we have that: $$|f_n(x)g_n(x)-f_n(x)g(x) + f_n(x)g(x) - f(x)g(x)|$$ $$\le |f_n(x)g_n(x)-f_n(x)g(x)|+|f_n(x)g(x)-f(x)g(x)|$$ $$=|f_n(x)||g_n(x)-g(x)|+|g(x)||f_n(x)-f(x)|$$ $$\le ...
0
votes
0answers
27 views

Can anyone identify the LaTeX font in this expression? [duplicate]

I have a document which includes the following expression: Can anyone identify the font or symbols used for the D and T characters at all? I don't have the source LaTeX and need to reproduce this ...
1
vote
1answer
19 views

Removal of gaps in expresssion

I have an expression in a body of LaTeX: $O(\mid\emph{P}\mid+\mid\emph{Q}\mid+\sqrt{nk})$ Which produces: This is correct but is it possible to remove the gaps between the characters at all?
3
votes
1answer
56 views

Help with formatting headers

People. I am new person to LaTeX. I wasted a lot of time for these easy things... I am sorry to interrupt all of you. oh, I am trying my best to find solution to these problems. But everytime ...
2
votes
0answers
48 views

Make output pdf consistently viewable on other systems [closed]

I frequently have to submit pdf documents to government systems and want to make sure that my fonts and formatting are preserved intact on these government system. I have no way of knowing what ...
0
votes
1answer
77 views

Formatting the recommendation letter

I'm using the Moderncv Classic template. Everything is okay except the recommendation style. I want to replace the style that I have put in the last section of the code. Can you check that why the ...
4
votes
1answer
128 views

Change item symbol within itemize in beamer

I'm using beamer to create a presentation and I'd like to mix item shapes. Namely, I'd like to use something like \begin{itemize} \item[\circle] Something \item[\triangle] A conclusion \end{itemize} ...
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 ...
5
votes
0answers
35 views

How can I make biber output uniform field name lengths for all entries?

When I run biber, with options biber --tool --output_align --output_indent=2 --output_fieldcase=lower I get: @inproceedings{foo, author = {One, Some}, booktitle = {International Conference ...
2
votes
1answer
50 views

How to wrap lines in a bulleted list correctly

I am new to all this. I am sure there is a solution.
2
votes
1answer
91 views

How to snap a float to grid

I have a two-column document with some column-spanning floats. The problem is that floats essentially reduce the page size when present, and the remaining page size does not necessarily correspond to ...
0
votes
0answers
17 views

new section text on same line [duplicate]

When writing an article, how can I keep the text on the same line as the subsection? e.g. suppose I say \subsection*{a)} blah blah blah How can I keep the subsection text of "a)" and the ...
0
votes
1answer
56 views

How to format complex section header

I've got several question, all relating to the below image. Within my .cls file I am trying to style the section headers like so: My first question was how do I stop \sections from being numbered. ...
0
votes
1answer
37 views

How to insert flexible float/text separation in two-column mode

To avoid ugly extra white space in the text, i want a flexible glue between the float and the text in two-column mode. In one-column mode, I can add extra glue using \textfloatsep, and I hoped I could ...
3
votes
2answers
65 views

How to change the label and deitalicize expex example?

I have the following code: \documentclass[11pt]{article} \usepackage{CJKutf8} \usepackage[T1]{fontenc} \newenvironment{korean}{% \CJKfamily{mj}}{} \usepackage{expex} \begin{document} ...
5
votes
1answer
40 views

Different subsection format if no title is given

I want to have subsections appear like "Article 1: Foo" when I enter \subsection{Foo}, but like "Article 1" (without the colon) when I enter \subsection{} (without a title). Is there a way to do this? ...
3
votes
2answers
67 views

italicize the subsubsection in latex

How do i italicize the \subsubsection{Subsubsection} 1. section 1.1 subsection 1.1.1 subsubsection I want the third line i.e. starting from 1.1.1 subsubsection italicize. Please help
3
votes
1answer
126 views

Making different styles in a latex document

In LaTeX there are such commands as \textit{}, \textbf{} to make a fragment of a text italic or bold. Can we make custom commands like this with different color, font, italic/bold/underline modifier? ...
0
votes
1answer
44 views

Section* in titlesec package

I cannot see section* in this source: \documentclass[oneside]{book} \usepackage[margin=1cm,top=1.5cm,right=1.5cm,bottom=2cm]{geometry} \usepackage[explicit]{titlesec} \usepackage{polyglossia} ...
27
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 ...
2
votes
1answer
34 views

How to print out only statements (theorems, lemmata, etc) from a tex file?

Suppose that I have a long tex file with a lot of things. In order to read the logic structure only, I want to print only text inside \begin{theorem}..\end{theorem} and \begin{lemma}..\end{lemma}. ...
4
votes
1answer
63 views

Formatting a thesis report - footnote area fixed height

I'm trying to fix the maximum height of the footnote are in my document. Right now the formatting is such that almost every page with footnotes looks completely different. I know understand that ...
2
votes
1answer
79 views

Fixing a LaTeX thesis style issues with formatting section headings

I am fairly new to LaTeX, but I decided to take it upon myself to use the .sty file the computer science department at my school had for the university's thesis style. As it turns out, there are a ...
8
votes
6answers
275 views

command to display time (duration) in human readable form

I spent 3 hours trying to write a command to format a time (duration) expressed as a floating number (in seconds) in a nice form as follows: if the time is < 60 write as a float with 3 decimals ...
1
vote
1answer
85 views

Format nightmare

I'm writing my thesis first time with LaTeX. I have several headaches with the formatting of the document: One 12pt looks on paper small than normal 12pt font size. Is that something that's known or ...
0
votes
1answer
42 views

Tab in latex for writing code [closed]

How can I make a 'tab' in latex? I searched a lot, I found something useful but .. I must wrote code and I need a tab of different size. Can someone please help me with an answer?
1
vote
1answer
30 views

Custom title for each item using itemize package

I want to create a list in which each item has its own title. For instance, First item: This is the first item with a custom title Different title: the second item has a different ...
3
votes
1answer
60 views

sum in the same line as a fraction

I'm sorry if this has been asked. I'm new to this and to Latex. I have this piece of code: \[ e^{-\xi_1 Y_1^N} = \exp\left(-\frac{\xi_1}{N}\ \sum_{n\geq1}{}V_n^1 e^{-s_n}\1_{\{ s_n \leq ...
2
votes
1answer
54 views

change formatting of the index

I am formatting a book which has a fairly extensive index and I am trying to figure out how to change the amount of indent that long lines wrap to. The author wants to cite entire book titles which ...
2
votes
0answers
51 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
11
votes
3answers
253 views

\left[ and \right] resizing differently for very similar formulae. Don't know how to fix it.

I have a \newcommand which inserts left and right square brackets around whatever you pass it. \documentclass{minimal} \newcommand{\foo}[1]{\left[#1\right]} \begin{document} Since $\foo{B} = ...
0
votes
1answer
38 views

Changing the page number/footnote number font?

I think I've been using this code: \renewcommand{\footnotesize}{\fontfamily{phv}\selectfont\scriptsize} It changes the font of the footnote but not the number of the footnote itself. Any way to ...
2
votes
0answers
20 views

Changed Font seems to have destroyed formatting Friggeri CV

I've been trying to use the Friggeri CV, and looked at all the bugs that people have had, so changed the font from Helvetica Neue to the the Roboto font, in the friggeri-cv.cls file. However, this ...