Questions tagged [formatting]

{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.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

How can I create an article with a title like the 1960s Journal of Finance?

Here's a classic article from the Journal of Finance: https://psc.ky.gov/pscecf/2012-00221/rateintervention@ag.ky.gov/10252012f/sharpe_-_CAPM.pdf How can I create a first page that emulates the first ...
4
votes
2answers
116 views

Table Formatting Suggestion

This is more of an open-ended, personal opinion type question. I am trying to make a nice-looking table for a report. Here is what I have so far: The contents of each are slightly different, but the ...
2
votes
1answer
38 views

Creating table with stacked variable names

I am having an issue with creating a regression table where I don't want the variable name to be super long and want it to sort of stack. For example, I want a variable name such as "first second ...
0
votes
0answers
9 views

Problem in removing conference's information in ACM sigconf format

I have used the below code to remove header and footer information but couldn't succeed in removing conference information("WOODSTOCK’18, July 29-August 3, 2018, City, State, Country") in the header (...
0
votes
1answer
33 views

memoir: Understanding the default margins

Here is a MWE illustrating the margin-setup of memoir: \documentclass{memoir} \usepackage{lipsum} \begin{document} \chapter{1} \lipsum \chapter{2} \lipsum \end{document} The first page of the ...
2
votes
1answer
56 views

Abstracting out “the font of the table header is bold”

Let's say I want my tables to have the following look: I can do that as follows: \documentclass{memoir} \usepackage[table]{xcolor} \begin{document} \begin{table}[h!] \centering \rowcolors{...
2
votes
2answers
61 views

Bold and Colored Image Caption

How can I color and bold an image's caption in \documentclass[12pt]{report}?
0
votes
0answers
13 views

How do I add roman numbered abstract, Acknowledgement to “CONTENTS”.?

\documentclass[a4paper,12pt, twoside]{report} \usepackage[margin=1in]{geometry} \usepackage{titlesec} \titleformat{\chapter}[display] {\filcenter\normalfont\LARGE\bfseries} {{\...
0
votes
0answers
16 views

How do I specify font size for headings in my Latex file? Also Contents page is not showing 'abstract' 'acknolwdgement''

% I want chapter heading {INTRO} to be of font 16, section heading of 14, and %subsection of 12. \documentclass[a4paper,12pt, twoside]{report} \usepackage[margin=1in]{geometry} \usepackage{...
2
votes
1answer
24 views

How to make a multi-column acronym list with acro package, aligned and with short definition in bold?

I want to fix the alignment issue so that the long definitions are all aligned. I've pasted the relevant code I used to generate the example below. I've also got a second attempt where I've got it ...
0
votes
1answer
29 views

Turn off automatic figure numbering

I have this code: \begin{figure*} \includegraphics[width=\textwidth,height=9cm]{ex.png} \caption{Fig. 6: example.} \end{figure*} But it is the 6th figure of my report. I automatically also see ...
2
votes
2answers
43 views

\boldsymbol doesn't work as expected inside equation environment

I would like to obtain a bold equation inside an equation environment. I've tried \begin{equation} \boldsymbol{x=y} \end{equation} but x=y is not rendered bold. What's going wrong here? If I ...
0
votes
0answers
49 views

Newpagestyle always starts a new page

is there any option to prevent Latex from starting a new page when I change the pagestyle (\pagestyle{...})? Related to this question. Whenever I start a new chapter I get the page number in "1" on ...
1
vote
3answers
37 views

How do I get rid of the different horizontal distances

between page boarder and Header respectively normal text? \documentclass[a4paper,12pt,oneside]{book} \usepackage{titlesec} \titleformat{\chapter}[hang] {\normalfont\Large\bfseries}{ ...
2
votes
2answers
41 views

How do I place a bibliography after the signature in a newlfm letter?

I'm writing a letter that requires me to cite a non-trivial number of news articles right now. After quickly discovering that footnotes were not going to work for me, because the footnotes would take ...
9
votes
1answer
147 views

Sorting and looking at the (table of) formula directory - with glossaries

I would like my formula index to look more like my tabular index. But at the moment it still looks like this. Without clamps. Besides, it's too far out of the frame on the right (showframe=true ist ...
5
votes
3answers
112 views

Fitting large table to single page

I am trying to ensure that the below table fits into one page. I am fine if the font is smaller. I have already tried changing the font, but it didn't work well. Here is what I have so far: \...
0
votes
1answer
44 views

How to achieve this formatting LaTeX?

I would like to create a document that looks like this (without the colors) : How can I achieve this formatting ? Thank you.
2
votes
1answer
43 views

How to set all titles levels of a document following strict rules?

I'm writing a document with very specific rules: Section: 14 pt, bold, uppercase Subsection: 12 pt, bold, uppercase Subsubsection: 12 pt, bold Paragraph: 12 pt Document spacing: 1.5 Space between ...
0
votes
0answers
18 views

Force Appendix not to appear but keep references to appendix and citations in appendix

My research group is trying to submit a paper to a new journal and they have a strange requirement that we haven’t figured out a way to satisfy. They would like the appendix to be a separate document....
1
vote
1answer
37 views

How to right align the addrfrom, phonefrom, and emailfrom in the newlfm class?

I am new to LaTeX, and I have been struggling to find the solution on how to right align the header where I put the address, phone, and email. My email is pretty long because of my long name, so the ...
2
votes
1answer
56 views

New page for every paragraph [duplicate]

For proof-reading-purposes I would like Latex to begin every separate paragraph on a new page. Is it possible to redefine \par or issue a command to achieve this? Example paragraphs: sed do eiusmod ...
2
votes
2answers
26 views

Formatting sub figures which use tikz

I'm writing an exam paper for a friend's tutoring business. One of the questions is going to be on velocity-time graphs. I wanted the 4 graphs to show up in a 2x2 grid but using the code below they ...
1
vote
1answer
32 views

Placement of bullets between 2 items

I am using a resume template and currently the bullets for the resumeSubheading entry appear somewhere in the middle of the 1st and 3rd entry. Somewhat like this: I want them to be directly before ...
2
votes
1answer
55 views

Customising @inbook or @incollection bibliography entry?

I'm very new to LaTeX, only started coding last weekend. I've learned the basics of bibtex and switched to biblatex to use for my bibliography. I've been fighting my way through tutorials trying get ...
0
votes
1answer
27 views

Captions overlapping in list of figures

While trying to get the formatting right in my thesis, I have run into an issue where the figure captions in the list of figures are overlapping. I spent quite a bit of time in trying to create a MWE ...
0
votes
0answers
15 views

Unwanted Line Breaks between Paragraphs [duplicate]

I am typing up an article in LaTeX and everything works perfectly, but for some reason there is a point where there are a few paragraphs where there is a line break between each paragraph. Has anyone ...
2
votes
1answer
31 views

How to put the candidate's declaration chapter and certificate chapter in the same page and in the center in latex report

% Also, how can I reduce the spacing between the front matter in table of contents. \documentclass[a4paper, 12pt]{report} \usepackage{fancyhdr} \usepackage{titlesec} \titleformat{\chapter}[...
1
vote
1answer
39 views

Formatting cite to: author [ref]

I am doing citations like \cite{waseem16} where it appears like: Waseem and Hovy [2016]. But I want to make it appear like: Wassem and Hovy[WH16]. How do I format my citation to appear like so? ...
3
votes
1answer
26 views

Table numbering and descriptions

I am trying to add a Table number, Table caption, Table description to the following table (which was constructed with helpful inputs by @leandriis and @Dynamite) \documentclass[final,3p,times,12pt]{...
2
votes
2answers
34 views

Simple table formatting

I am trying to format the below code so that the table looks as follows: I have tried adding toprule and midrule, but I couldn't achieve my goal. Here is the code I have so far. \documentclass[...
0
votes
1answer
37 views

Clear header except page numbering

Edit: Due to failure in answer, I will break the problem into two parts -- simple and complex with the intention of being more clear on what the question deals with. Simple problem: With respect to ...
4
votes
1answer
38 views

Why do \large and \textbf require different usage of braces?

\large and other font size commands need to be placed inside a group: In this text {\large some part} is large. Whereas \textbf and other styling commands receive a parameter: In this text \textbf{...
0
votes
1answer
42 views

How do I lock h-space?

like a = 5 [a is 5] b = 555555555555555555 [b = 55...] like where the brackets are [a is 5]. I wanted it even with the top part always
3
votes
1answer
59 views

Putting Two Tikz Pictures in an Align Environment

I want to put two tikz pictures together like an equation. Here is what I have so far: \documentclass{article} \usepackage{amsmath} \usepackage{pgfplots} \usetikzlibrary{matrix} \usepackage[x11names]{...
2
votes
2answers
106 views

How to make a booklike page using article class?

I'm writing some class notes in TeX and I would like to customize the page to make it look more like a book page, with those upper bars in the chapter, as shown in the template below. \documentclass[...
0
votes
1answer
97 views

E-mail in LaTeX

I have been trying to include contents of an e-mail in a latex document, similar to how there are packages to include source code, for example (using the listings package, for example). These are ...
1
vote
1answer
21 views

Align text in the middle of a table cell [duplicate]

\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{setspace} \usepackage{rotating} \usepackage{array} \...
3
votes
1answer
61 views

How to use a bold font in subsections in the table of contents?

\documentclass[12pt,letterpaper]{article} \renewcommand{\rmdefault}{phv} % Cambiar la fuente a Arial \renewcommand{\sfdefault}{phv} % Arial %PARA COMENTAR VARIAS LINEAS \usepackage{verbatim} \begin{...
2
votes
2answers
44 views

Add a description of the columns above each column (List of Abbreviations, Acronyms)

Thanks to https://tex.stackexchange.com/a/253466/188437 and to the manual of the acro package (https://mirror.informatik.hs-fulda.de/tex-archive/macros/latex/contrib/acro/acro_en.pdf) I was able to ...
7
votes
1answer
60 views

Why doesn't \lstset{escapeinside={((}{))}} work as expected?

Here is my code: \documentclass{article} \usepackage{listings} \lstset{basicstyle=\ttfamily,columns=fullflexible} \begin{document} \lstset{escapeinside={((:}{:))}} \begin{lstlisting} foo ((:\textit{...
6
votes
1answer
142 views

Avoid that star symbol is searchable with questionmark “?”

Given the following minimal example: \documentclass{article} \begin{document} $a \star b$. \end{document} This produces the desired output in the PDF file. However, my problem is that if I search ...
2
votes
2answers
36 views

How do I get appendix titles in the same style as chapter titles?

I'm using the book class and the following in my preamble: \usepackage{sectsty} \allsectionsfont{\large} \chapterfont{} \sectionfont{} \subsectionfont{} \subsubsectionfont{\vspace{-0.5\baselineskip}\...
1
vote
3answers
56 views

How to create enumerated local commands

I have a custom environment to recreate a certain layout formatting a variable number of text entries in multiple enumerate environments. So far I have been defining multiple similarly named commands ...
5
votes
2answers
72 views

How do I set the Verbatim font (or the mono font) to bold by default?

I'm using the fancyvrb package and the Verbatim (with an uppercase V) environment. However, the font I'm using is to light for my taste, so I'd like to make it bold without having to write \textbf{} ...
2
votes
2answers
51 views

caption width of table equal to width of table

currently, the table is caption inside the box with a background color my problem is I need to align the width of the box is equal to the table width. Current output My codings \documentclass{...
0
votes
3answers
66 views

Table with margins?

I'm trying to format a table that is about 3/4 the width of the paragraph text. I tried using tabular to do this, however it has some problems. First, the default table extends past my documents ...
2
votes
0answers
28 views

Render/export latex into non-paper-oriented formats

I use Latex very much and I generate many PDF files. I love the output quality. However I almost never print these PDF files, I always read them from the computer. Thus I find it nonsense to have the ...
2
votes
0answers
35 views

How to display vertical lines at indents in lstlisting?

I want to display vertical lines in indentations. I already found this thread: Lstlisting and indentation lines, but it isn't what I want. This is how my attempt looks like: This is how I want it to ...
2
votes
2answers
50 views

Drawing a horizontal \rule through the middle of a line

How can I do something like \noindent\rule{\linewidth}{0.25mm} but in a way that doesn't leave a big gap before it? Currently it's kind of like \bottomrule, almost as if it skips a line. I want it to ...