{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

0
votes
0answers
7 views

I am having problems with table placement [duplicate]

Hi I am sorry if this is a repeat, I tried to find a similar problem but I could not. I am making Cayley tables and I quite like the ease of the code I am using, but something strange keeps happening. ...
3
votes
0answers
11 views

pgfplots bar plot number format

I was just trying to compile some data into a bar chart using pgfplots. Things seem to work apart from the following: The annotation for the bars has low precision, i.e. only 3 decimals, it is shown ...
3
votes
1answer
53 views

Automated format in a nested enumerate environment

I have to do a small document, in which I intend to use Tufte-handout rather than article or Scrartcl classes and compile it with XeLaTeX with a typography I intend to use. However I have a ...
0
votes
0answers
39 views

Using “newlfm” template - How to remove 2nd page and empty white space after signature block?

I have just begun using the "newlfm" template to write a cover letter but when I print the letter it generates a blank second page and leaves entirely too much white space beneath the signature block. ...
0
votes
1answer
24 views

Table not displaying in desired location [duplicate]

I am writing a lab report and I want to display the a table underneath my Results section. This is my code: However, the result looks like this: Why is this the case? Thanks!
5
votes
2answers
106 views

Draw italic box as a placeholder (around a single letter) in a word

I am comparing a lot of different cases that are all following a predefined naming scheme. I would now like to replace one of the character in the name with a box to indicate that this parameter is ...
1
vote
0answers
49 views

Right way for text inside math

I'd like to know (if there is) the better way to punctuate text inside math mode. I mean, when we use , or ;, they are punctuation for the text, not for the math and so I think that they should be ...
0
votes
1answer
28 views

Alignment of Appendix Chapter Headings

I am in the final weeks of my time as a PhD graduate student, and I need to fix one last item in my thesis to conform to my graduate school's thesis formatting requirements. The graduate school ...
0
votes
0answers
30 views

Latex - Formatting such a resume [on hold]

I would like to get some pointers on how to create a resume in LaTeX like this.
0
votes
0answers
24 views

Finding the cause for an overfull vbox [duplicate]

When compiling my document I get the following warning message: Badbox line 1: Overfull \vbox (1.77525pt too high) has occurred while \output is active [] Now from Google I learned that this ...
0
votes
0answers
22 views

IEEEtran table formatting doesn't work

I'm totally new to this so any insight would be greatly appreciated. I want to create a document using IEEEtran and despite trying on multiple operating systems and editors I can't seem to get tables ...
2
votes
1answer
18 views

Specify Figure name color and slant

Every time I have to denote a figure name in the text I have to type: {\textcolor{ocre}{\bf{\emph{Fig.\;\ref{figurename}(b)}}}} Is there an optimized way to specify this in the preamble so I do ...
1
vote
1answer
76 views

New example environment, with symbol at the end

Is there a standard formatted environment specifically used for examples? I'm writing a document on linear algebra, with the usual definition-theorem-proposition-example structure. Right now when I ...
0
votes
0answers
58 views

Style when writing scientific papers [on hold]

Is there a reference where I can see common stylistic choices made when writing a scientific paper in LaTeX? An example of a stylistic choice that I make is I plot my data with PGFplots when possible ...
2
votes
1answer
42 views

Equation number is too far from the equation

I'm trying to number some equations in a document that I'm writing, but the numbers are to the extreme right of page and I want it to be next to the equation. Right now, for example, it looks like: ...
2
votes
1answer
37 views

Adding a different colored line to each row of a table

It is possible to get colored \hlines with the example provided below. However, there are several issues with this implementation: It needs a \newcommand for every color, which then has to be used ...
2
votes
0answers
45 views

Argumentless macros for use in other macros

I'm in need of argument text formatters for use in some environments that use macros to redefine properties (e.g., enumitem). I need to underline text but there is no equivalent argumentless macro ...
4
votes
1answer
21 views

Making certain equation environments larger

I'm writing a lab report in LaTeX that involves a lot of equations. I wish for some equations to be larger than normal, owing to the fact that there are a lot of terms that are in the exponential, and ...
6
votes
2answers
66 views

How to restrict width of tcolorbox according to the length of the text it contains

I have created a tcolorbox (as given in tcolorbox version 3.40 manual - page 155) LaTeX Code: \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, ...
1
vote
1answer
13 views

How to affect line spacing in only one group on the title page?

I am trying to set up a title page for my summaries of the classes I take. The problem lies with the line spacing for the title being too small and me not being able to change just that. My .sty-file ...
2
votes
1answer
21 views

Citation in longtable overflows into margin

I have to produce two different versions of a document: one with author-year citations, and one with numbered citations. Thus, I'm using natbib and for each document I modify the natbib options. ...
4
votes
1answer
42 views

Using subfig package with bmcart class breaks caption formatting

I am writing a paper for a journal and have to use the bmcart class of the BioMed Central template found here (direct link to ZIP file). I use subfigures, but as soon as I load the subfig package, ...
0
votes
0answers
36 views

Latex stretches my last page before plots

If an image is too big to be put on some page that already contains some text, Latex puts it on the next page and stretches the space between the text lines of the preceding page. I would rather ...
21
votes
3answers
5k 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
22 views

Equal vertical spacing between quote and chapter number independent of line spacing

Similar to the answer of this question on stackoverflow, I have renewed the \begin{savequote} and \end{savequote} environment to be always single spaced no matter what the rest of the document is. ...
3
votes
2answers
28 views

Bolding the first line of \item elements, question/answer sytle

I was wondering if it was possible to bold the first line of an enumerated list without effecting the remainder of the list. The output I want would be the same as: \begin{enumerate} \item ...
31
votes
5answers
10k views

Date format: YYYY-MM-DD

Currently I put the date in my document using: \date{\today} How do I display the date in the YYYY-MM-DD format?
1
vote
1answer
46 views

Non italic text in math formula inside remark

I use some text in the math formula, e.g.: $ \texttt{MinimumPolynomial}(T) \mid \texttt{CharacteristicPolynomial}(T)$. I use "\texttt" to make such text non-italic. This works fine but, when I ...
0
votes
1answer
40 views

Howto format “Edition” in bibliography with Biblatex

I use biblatex and biber. I want "edition" part of my bibliography appears "edisi pertama","edisi kedua","edisi ketiga",etc instead of "1st edition","2nd edition","3rd edition",etc. I have ...
2
votes
0answers
17 views

Redefining glossaries style: grouping and capitalization issue

I'm trying to redefine the style of my glossaries list, and base it on the altlist. When executing the new style however, I notice that there is an empty line when two glossary items are grouped, even ...
0
votes
1answer
103 views

First Word or Letter taking two lines or three in a paragraph [duplicate]

Some articles start with its first word or letter in its first paragraph taking up the space of two lines or three lines. For example, it might look like the picture below (ignoring the rules). Is ...
4
votes
1answer
44 views

How to use newenvironment inside a table?

How to define a formatting to use for (individual) rows of a table? Example: (For each row) the first column is always bold, and the second column has an italic "title" and some text and possibly ...
0
votes
0answers
27 views

Auto hyphen in a Report

I am working on a LaTex "report" using WinEdt 9. The complied document contains "hyphen" which are generated by default. Is this possible to prevent from it. I tried \usepackage[none]{hyphenat} which ...
5
votes
1answer
270 views

How to add/insert a rule in the headline and footline

When we use the specified format from beamer, \documentclass[compress]{beamer}, how do we add/insert a black line above the headline and under the footline into each slide? ...
2
votes
2answers
57 views

Multicolumns with equation format

I'm currently writing a summary for my semiconducter devices course and I'm trying to do it with Latex (just started today). I have the following problem: I have two chapters with two formulas each. ...
4
votes
4answers
72 views

Aligning sums in math mode

What is the best way to typeset this? I found a way to do it, but it seems like an ugly workaround, and the + signs aren't aligned right. The code I used: Let's evaluate the value of: ...
0
votes
0answers
62 views

How do you underline

How do you underline text? Also how do you underline math?
4
votes
1answer
58 views

removing chapter title in one of my chapters?

I have written my thesis in LaTeX (xepesian) and I have customized my chapters title as follows, ‎\makeatletter‎ ‎\def\thickhrule{\leavevmode \leaders \hrule height‎ .‎5ex \hfill \kern \z@}‎ ...
44
votes
4answers
6k views

Make one author's name bold every time it shows up in the bibliography

I'm working on a CV. I'd like to highlight my name in every entry in the bibliography. I've tried simply replacing {myname} with {\bf myname} or {{\bf myname}}, but they fail with various errors, ...
2
votes
1answer
77 views

\pause in KOMA-script scrartcl

Is there any way that I can use the command \pause in KOMA-script presentation? The \coverand \uncover commands seem to unfunctional as well. This is the template I use: ...
4
votes
1answer
32 views

figure and figure* with inconsistent orders

How to have figures of both types \figure{} and \figure*{} ordered correctly among one another? I have elements of both types \figure{} and \figure*{} in a document (its class is ...
0
votes
0answers
46 views

Latex copy formatting table

How can i copy formatting table from latex pdf? To word or email message? When I copy - paste table from pdf paste only text, without formatting tables line. Part of my .tex: ...
4
votes
2answers
128 views

How to make all quotes in LaTeX italicised

I want to italicise all the quotes in my paper. By that I mean that everything in the {quotes} environment is italicised to help differentiate it from the main text. I've seen a few threads talking ...
1
vote
1answer
25 views
2
votes
2answers
44 views

Moderncv: How to avoid bold lettering for recipients?

I'm using moderncv to get my cover letter. In the upper part of the document LaTeX sets up the address line of the company. The thing is that the first part of this address line has bold letters. ...
1
vote
2answers
278 views

Problems with website formatting in apacite's reference page

This is a very specific problem, but it's driving me crazy. I'd like my output to look like this: Author, A. A., & Author, B. B. (Date of publication). Title of article. Title of Journal, volume ...
1
vote
2answers
46 views

Background margin fill for (first line of) section titles?

I'd like some of those "flaps" (how are these really called in typography, actually? Is it "thumb index"?) which is a bit of fill, extending to the margin; so that when you "bend" a book, you can see ...
25
votes
2answers
2k views

Chapter Title in rotated vertical box at the margin

I am using the book document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box ...
0
votes
1answer
57 views

How do I change labels of the enumerate environment?

I write \begin{enumerate} \item MMMMMM \item NNNNNNN \end{enumerate} but when I compiled appear: a)MMMMMMM b)NNNNNNNN I wish the item to appear in Arabic numerals instead of letters 1)MMMMMMM ...
15
votes
6answers
307 views

Function to autoformat string of text

I am writing a thesis that will require the reporting of the results of multiple ANOVAs. Reporting these follows the format F1,16=5.06, P=.009. I would like a tool that does this formatting for me, ...