{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

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} ...
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
44 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
98 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
55 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
399 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
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?
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
81 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
147 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
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) ...
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
57 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
64 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
70 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
40 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
45 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
92 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
44 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 ...
3
votes
1answer
65 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
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 ...
0
votes
1answer
39 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 ...
11
votes
3answers
255 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} = ...
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 ...
3
votes
1answer
39 views

how to give horizontal offset to the section heading and align multiple tabs

I am a beginner in latex and trying to prepare my CV. the output of the following code \documentclass[11pt]{article} \usepackage{sectsty} \usepackage{amsmath} ...
3
votes
1answer
101 views

LaTeX Equation left aligned with smaller fonts size

I have the sample below, When I compile and run, each step of the equation is left aligned with smaller fonts. What I'm trying to achieve is, each step of the equation should appear on a line by ...
1
vote
1answer
36 views

Wrap a verbatim table environmet

I have text with all sorts of characters in it that I want to use in a table so thought that verbatim might be suitable, but this doesn't seem to wrap. I've seen suggestions for listings but this ...
1
vote
2answers
72 views

bullet list within texttt

I wish to insert a bullet list inside \texttt{} as part of the original reproduction. Is there a way to do this? When the list is copied directly from the original text, the rendering inside \texttt{} ...
0
votes
1answer
84 views

Semibold with lmodern? (Middle-bold)

I have my document ready to print, except the title. Regarding purely personal and aesthetic taste, I want it with serif with lmodern font, and a bit bold. However, for my taste, using \normalfont is ...
0
votes
0answers
42 views

How to remove square bracket in reference

I want my reference to be printed as 1. 2. and not as [1]. [2]. below is my code \documentclass{acm_proc_article-sp} \usepackage{amsmath , amssymb} \begin{document} ...
2
votes
2answers
77 views

Getting font size of section numbering to match font size of section title

I would like to change the size of the section labeling in my doc. While I can alter the font size of the title (setting it to \normalsize{}), the corresponding section number's size is not affected. ...
1
vote
1answer
27 views

How to change figure caption label

How can i change my figure caption from Fig. 1 to Figure 1 I am using IEEEtran template. My code looks like below \documentclass[journal]{IEEEtran} \usepackage{algorithmic} \usepackage{graphicx} ...