{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

8
votes
1answer
408 views

How to wrap pictures in lists in theorems with formulas?

I want text to flow pictures. @Bernard adviced me this way of doing it with formulas and theorems. Thanks him, it works great in many cases better than any other variants I have ever seen. I have ...
2
votes
1answer
58 views

Specific chapter page formatting

I bought a recent math book, and it was clearly made using TeX. Here's an example from the chapter page: I wanted to reproduce this chapter style for other texts I'm working on (same fonts, sizes, ...
0
votes
1answer
58 views

Standard way of typing a set of equations in math mode involving two relations, for example: $=$ and $<$ [closed]

When typing a set of equations in math mode, is it better/clearer/standard to type, for example, how Rudin types this equation (pg 15 'baby Rudin'): Notice, how the third line changes to $\le$ and ...
2
votes
1answer
73 views

\setindent hack and alignment between parallel paragraphs with reledmac

Based on David Carlisle's answer here, I've defined a macro that stores the length of the last line of the current paragraph. But when using it with reledmac and -par, it messes up the alignment ...
2
votes
1answer
29 views

Macro to store the length of a paragraph's last line

Based on an answer here, I've defined a macro that should store the last line of the current paragraph without producing any output. But the code below produces the expected result only the first ...
3
votes
2answers
104 views

How can I change a specific page number to bold?

As an ester egg I would like to change the formatting of only one page number and leave all other as they are. I am using the article document class with page number on the bottom of the page in the ...
1
vote
0answers
20 views

Getting the length of the last line of paragraph w/o producing vertical space [duplicate]

Can I use $$\predisplaysize$$ to record the length of the last line of a paragraph without producing any output (vertical space)? \documentclass{article} \usepackage{lipsum} \newdimen\lastline ...
4
votes
3answers
79 views

Remove cross-reference to a footnote, but keep the footnote

I would like to achieve this: Where I can cross-reference a footnote without it showing up as a superscript. However, I don't want to change the behavior of \footnote globally, I just want to be ...
3
votes
1answer
65 views

Overlapping numbers and titles in toc

How can i change formatting of the table of contents to avoid section numbering and section title to overlap? Document: \documentclass[10pt,oneside,notitlepage]{book} % Use Heuristica Font ...
2
votes
0answers
30 views

Numbers in reference list shown without square brackets

I am using \documentclass[smallcondensed,singlecolumn]{svjour3} \usepackage[square,numbers]{natbib} \begin{thebibliography}{99} \harvarditem{Boriah et al}{2008a}{agr:one} Boriah S, Kumar V, ...
1
vote
2answers
23 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 ...
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} ...
3
votes
1answer
58 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
1answer
23 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} ...
1
vote
1answer
50 views

Insert a special character at each end of line in a paragraph

I would like to add a character (e.g. $\hookleftarrow$) at the end of each line in a paragraph, in particular in a tabular cell, only if the paragraph has more than one line. How can this be coded?
3
votes
1answer
45 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
42 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} ...
1
vote
1answer
33 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
52 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. ...
3
votes
1answer
101 views

Bibliography formating

I have a question regarding bibliography. I am not a LaTeX pro, It doesn't matter for me at the moment if I have to use embedded bibliography or bobtex. The question is, how can I accomplish the ...
1
vote
2answers
77 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
29 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
56 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
1answer
52 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 ...
10
votes
4answers
401 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, ...
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
20 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?
1
vote
1answer
40 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 ...
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 ...
0
votes
1answer
82 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
151 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} ...
3
votes
2answers
80 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) ...
2
votes
1answer
51 views

How to wrap lines in a bulleted list correctly

I am new to all this. I am sure there is a solution.
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 ...
2
votes
1answer
93 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 ...
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
58 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. ...
1
vote
3answers
65 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...
5
votes
1answer
42 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
72 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
2
votes
0answers
41 views

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

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 ...
3
votes
1answer
127 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
46 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} ...
2
votes
1answer
37 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}. ...
2
votes
1answer
96 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 ...
4
votes
1answer
67 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 ...
1
vote
1answer
86 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
46 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
33 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 ...
8
votes
6answers
284 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 ...