{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
53 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
37 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
6k 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

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
32 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
11k 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
52 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 ...
2
votes
0answers
24 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
122 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
50 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
33 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
323 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
65 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
78 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: ...
1
vote
0answers
72 views

How do you underline

How do you underline text? Also how do you underline math?
4
votes
1answer
63 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@}‎ ...
45
votes
4answers
7k 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
97 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
36 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
54 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
137 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
38 views
2
votes
2answers
54 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
320 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
63 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 ...
1
vote
1answer
65 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
327 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, ...
1
vote
1answer
70 views

How to suppress the hanging-over text part of a section title within the table of contents?

My question is, if there exists a method to suppress hanging-over text elements in the table of contents. Below you will find my MWE. Thanks a lot for your solutions and comments! ...
1
vote
0answers
84 views

Formulas are not displayed correctly (documentclass 'simauth') [closed]

I am supposed to use the document class simauth as described here. However, the formulas and in general anything math related looks not as it is supposed to look, instead of Does anybody know ...
0
votes
0answers
38 views

Pdf text looks faded both on screen and on paper [duplicate]

Looking at the pdf generated from the latex code (I am using texmaker) it looks faded with respect to other pdf files I am use to read. I mean, the words are not as dark as the ones on the other ...
3
votes
2answers
107 views

Insert text in-between rows in a table

I'm trying to achieve the following effect: +------------+---------+ | Col1 Col2 | | +------------+---------+ | Value 1 | Value 2 | | Value 3 | Value 4 | Text goes here... | Value 5 ...
4
votes
1answer
106 views

How to write in smallcaps in chead of article class?

I want to write few words in small caps. But it's not working in \chead \chead{\textbf{\textsc{\Huge Small Caps Text}}} Can you please suggest?
0
votes
0answers
39 views

LaTeX for scientific publications? [duplicate]

please excuse the noob question, but I'm pretty new to the Tex Stackexchange. I am currently working on my PhD in a biochemical engineering/nanoengineering field. I was wondering what resources would ...
2
votes
1answer
42 views

How do I strike out indices? [duplicate]

I want to strike out the superscripts and subscripts for an expression like $$\Gamma^{\lambda}_{\mu\nu}$$ I tried the ulem package: \usepackage[normalem]{ulem} \sout{Hello World} and the soul ...
3
votes
1answer
32 views

How to make shure there is a “~” between all bibtex formating data and user provided stuff?

I want to make sure there is a ~ in something like \newblock {\cyr\textnumero}~{11-1 (39)}. instead of \newblock {\cyr\textnumero} {11-1 (39)}. So I have bibtex record alike this has in it a ...
4
votes
1answer
35 views

Adding “indentation markers” (similar to what some IDEs / text editors can do)

Assume I have the following code \documentclass[a4paper]{article} \usepackage{scrextend} \begin{document} \begin{addmargin}[2\parindent]{0em} expand A \begin{addmargin}[2\parindent]{0em} ...
1
vote
1answer
52 views

Creating bullets within a subsection

I'm fairly new to LaTeX, and I have no idea how to fix this. Basically I make a subsection using \section, and then create subsections using \subsectiond. Now I need to create bullets within the ...
2
votes
1answer
130 views

print the chapter number as name in class file latex

I am using a Duke University LaTeX template for master thesis, the template print chapter headers as follows: Chapter 1 chapter name but I want to print it as follows Chapter one: ...
4
votes
2answers
68 views

How can I show codeboxes?

I am in the process of writing a simple manual. In it, I explain how to set up the files and programs necessary to run a pipeline I have written. I would like to include command line commands in that ...
1
vote
1answer
44 views

How can I force an abstract to fit on the title page (if there is space) using the AASTeX package?

I am trying to format a paper using the AASTeX package. When I typeset the paper with the title, authors, authors' information, and the abstract, the abstract is automatically forced to the second ...
2
votes
1answer
28 views

I cannot seem to get a part of moderncv's example template to render in my preexisting CV

I am a beginner at LaTeX and have been plodding along mostly by adapting snippets I find online. I'm trying to build a cover letter for a CV using the moderncv package. In the letter example, the ...
0
votes
0answers
44 views

How to justify one part of a line left and the other on the right hand side

I was wondering if it was possible to have two sections of text, on the same line be both left justified and right justified. For example doing this: {\itshape{\begin{flushleft}I'm on the ...
-1
votes
1answer
122 views

how can I create a chapter heading like this?

Hi I want to format my chapter of my thesis as shown in the figure. How can I do it? Can you suggest me some fancy latex templates for a phd thesis?
1
vote
0answers
21 views

Matching a single lines style with moderncv

I'm pretty much brand new to LaTeX and and wanted to update my resume. I'm currently using moderncv banking style to do this. In moderncv there is a style called \cventry: ...
2
votes
2answers
42 views

How to redefine \emph to have bold text with bold math?

This question explains how to redefine the \emph command so that the text is bold. When mathematical text is included with emphasized text, I have been using the following solution: ...
17
votes
2answers
2k views

Coloring chapters and sections with respect to parts

I am using the book document class and I want to produce a document with several parts, chapters, sections, sections and subsections. I would like to make it easier for the reader by coloring ...
0
votes
0answers
53 views

Listing authors sequentially with affiliations without 'and' operator

I'm having problems listing authors in a way that doesn't cause a strange 'and' operator to appear between names, as well as names to appear on completely different lines. Sometimes it goes away and ...
0
votes
0answers
40 views

lmodern and italics or and bf coding not working in body of document, working in footnotes

I have just changed from using palatino package to lmodern. I noticed that now \italics (or \itshape) or \textbf do not appear to be active in the body of my document but work (!?) in the footnotes. ...
2
votes
1answer
37 views

Issues when formatting a picture within a footnote

Hi all I am attempting to create something along the lines of: But so far the closest that I can get is: My code is: \footnote{\begin{wrapfigure}{l}{0.1\textwidth} \vspace{-15pt} \centering ...