Tag Info

Hot answers tagged

9

You should not use $$ $$ with LaTeX: it's a plainTeX command, and you have incorrect vertical spacings; it's replaced with \[ \]. If you want numbers with displayed equations, use \begin{equation} \end{equation} for just one equation, and, from the amsmath package, \begin{gather} \end{gather} for a group of centred displayed equations. If you want several ...


6

One option, redefining the footline template in a similar fashion to the one used by the frame number option defined in beamerbaseauxtemplates.sty. You can adjust the desired location by changing the length I used in the part marked with <--- change here: \documentclass{beamer} \usepackage{datetime} \ddmmyyyydate ...


5

Basically the same like Gonzalo Medina's answer (who was 1 minute faster), but instead of the \raisebox you can simply play a bit with the value of the \vskip20pt. \documentclass{beamer} \defbeamertemplate{footline}{higher page number} {% \hfill% \usebeamercolor[fg]{page number in head/foot}% \usebeamerfont{page number in head/foot}% ...


5

One way would is to save the definition of the environment thebibliography after loading natbib and let it be preceeded by the macro \@safebibliography as it normally has to be in pittetd class: \usepackage{natbib} \let\oldthebibliography\thebibliography \makeatletter \renewcommand{\thebibliography}{\@safebibliography\oldthebibliography} \makeatother ...


5

Actually in a book document class, appendices are written as chapters. \documentclass [a4paper,12pt,oneside,final]{book} \usepackage[titletoc,title]{appendix} \pagestyle{headings} %% for headings, for more customization, use fancyhdr package \begin{document} . %\frontmatter %% better to use this mark up . . . %\mainmatter %% better to use this mark ...


5

From \newtheorem* I guess you're using amsthm. Here's a way to do it: \documentclass{article} \usepackage{amsthm} \newtheorem*{assumption*}{\assumptionnumber} \providecommand{\assumptionnumber}{} \makeatletter \newenvironment{assumption}[2] {% \renewcommand{\assumptionnumber}{Assumption #1-$\mathcal{#2}$}% \begin{assumption*}% ...


4

\documentclass[12pt]{book} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[unicode,bookmarksnumbered]{hyperref} % I Changed this line %\usepackage{bookmark} % Not really necessary \begin{document} \pdfbookmark{\contentsname}{Contents} \tableofcontents \chapter{Chapter ...


4

Write in your preamble either: \usepackage{chngcntr} \counterwithin{section}{part} \renewcommand{\thepart}{\arabic{part}} or \makeatletter \@addtoreset{section}{part} \makeatother \renewcommand{\thepart}{\arabic{part}} \renewcommand*\thesection{\thepart.\arabic{section}} (By default, the partcounter is written in Roman numerals).


4

You have to save (using \let) the original definition and reinstate it afterwards. Also, I decrement the footnote counter, so that the blank footnote doesn't increment the index. \documentclass{article} \let\svthefootnote\thefootnote \textheight 1in \begin{document} First Footnote,% \let\thefootnote\relax\footnote{some text} ...


3

The class gatech-thesis.cls is buggy. You will see this odd behaviour not just with \section* but also with \subsection*, and \subsubsection* . The problem is that the class has (around line 2448) in the definition for \section, \subsection and \subsubsection: \renewcommand{\section}{% \@startsection{section}{1}{\z@}% {-3.25ex \@plus -1ex \@minus ...


3

One would expect that setting \beamer@tocsectionnumber=-1 would be enough (since \beamer@tocsectionnumber is the TeX counter controlling the section number typset in the ToC); however, this is not the case, since \beamer@sectionintoc (defined in beamerbasetoc.sty) has a conditional test using \ifnum\beamer@tempcount>0 which won't allow typesetting non ...


3

Writing this in your preamble: \usepackage[labelfont={bf, sf}]{caption} \usepackage{chngcntr} \counterwithin*{table}{section} \renewcommand{\thetable}{\thesection~\alph{table}} should produce table labels and counters as you describe (unsure you want the label in sans serif font!). Here is an example produced with that code in a standard class of ...


3

The argument of \footnotemark is the value of the footnote counter. The appearance of the footnote counter is controlled by the macro \thefootnote. This can be changed to generate small letters instead of the footnote symbols: \renewcommand*{\thefootnote}{\alph{footnote}} This can be done globally in the preamble, if all footnotes should be numbered by ...


3

A try with marginnote. But this won't work with multicols as you wanted. And it also doesn't work with on left side demand. \documentclass[twoside]{scrreprt} \usepackage[fulladjust]{marginnote} \usepackage[a4paper,left=1in,right=2in,marginparwidth=1in,marginparsep=0.1in,showframe]{geometry} \newcounter{foocounter} \setcounter{foocounter}{0} ...


3

If you don't mind printing the chapter number with the other sectional units wherever they appear (not just in the ToC, but in the text as well), just add \renewcommand{\thesection}{\thechapter.\arabic{section}} to your preamble. This should cascade down to the subsection level as well, since the subsection should use \thesection as part of its numbering ...


3

Would something like this work? It just uses the facilities provided by thmtools, which seems to be identical with thm-restate. (I'm not sure about this but the addition of the latter didn't seem necessary for your example.) \documentclass[a4paper]{article} \usepackage{thmtools} \declaretheorem[name=Learning Goal]{goal} \declaretheorem[ name=Learning ...


3

Set the content using a regular align, adding \nonumber to the first part of the equation: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \text{line 1} &\quad \text{is long, very long, really very long, unbelievably long, really it is such} \nonumber \\ \text{line 2} &\quad \text{is short} \end{align} ...


3

it seems to me that \raisetag should work here. it works with split: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} \text{line 1} &\quad \text{is long, very long, really very long, unbelievably long, really it is such}\\ \text{line 2} &\quad \text{is short} \end{split} ...


2

If you want the equation number be centred wrt the group of lines, the best is to use the multlined environment, from the mathtools package. Here is an example that shows the difference with split in such a context, with different way of aligning. Btw, with alignat, you don't have to repeat the quad separator between two groups: ...


2

Add to your Document > Settings... > LaTeX Preamble the following code: \makeatletter \@addtoreset{figure}{part}% Reset figure numbering at every part \makeatother \renewcommand{\thefigure}{\arabic{part}.\arabic{figure}}% Figure number is part.figure The default numbering of parts in KOMA-Script is Roman, so I've used \arabic{part} since. However, if ...


2

Here are some options: You can make \paragraph act in exactly the same way as \subsection by adding \let\paragraph\subsection to your document preamble. Or, simply use \subsection directly. \documentclass{article} \let\paragraph\subsection% Make \paragraph act just like \subsection \begin{document} \section{A} foo \paragraph{Definition} Here is ...


2

To change the representation for the first level of an enumerate environment, you can redefine \theenumi; the default definition on your example is \renewcommand\theenumi{{\rm (\roman{enumi})} so the label numbering will use lower-case Roman numerals; to get Arabic numbering you need to change it to \renewcommand\theenumi{{\rmfamily(\arabic{enumi})}} ...


2

Here's an attempt; note that the constraints are separated from each other with a semicolon. \documentclass{report} \usepackage{amsmath,array,xparse} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \newcounter{optproblemline} \renewcommand{\theoptproblemline}{\alph{optproblemline}} \makeatletter \renewcommand{\p@optproblemline}{\theequation} ...


1

Here is an adaptation of: Highlight elements in the matrix and Custom and built in TikZ fill patterns which achieves: Note that you can overwrite existing entries with fill=white (as in the first example) or just leave them blank as in the second example. Notes: This does require two runs: the first to compute the positions of the box, and the ...


1

Working notes For now, I can present you solution without amsmath loaded. It has protection of \label and I haven't figured out yet how to evade that. \documentclass{report} \pagestyle{empty} %\usepackage{amsmath} % Not working for now... \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \usepackage{refcount} \usepackage{alphalph} ...


1

In answering, I've removed commands which caused errors and packages which were extraneous to the issue. If you just don't want the chapters numbered at all, but you do want them to show up in the contents, something like this might be suitable: \documentclass[11pt]{report} \usepackage{geometry} \geometry{letterpaper} \usepackage{remreset} \makeatletter ...


1

Here's one possibility using a temporal counter. For me it wasn't clear why you used \addtocounter{subfigure}{1} but I respected this in my example codes below. \documentclass{article} \usepackage{subfigure} \usepackage[demo]{graphicx} \newcounter{tmp} \begin{document} \begin{figure} \centering ...


1

I use this commands and it works for me: \newcommand{\seepage}[1]{\marginpar{\scriptsize (p.~\pageref{#1})}} \newenvironment{lemmafirst}[1]{\begin{lemma}\label{#1}\seepage{#1_appendix} }{\end{lemma}} \newenvironment{lemmaagain}[1]{\begin{trivlist}\label{#1_appendix} \item[] \textbf{Lemma~\ref{#1}.} \seepage{#1} \em}{\end{trivlist}} I hope that this helps


1

This is a tricky problem, as the float environments are saved and literally transplanted from one section of your code to another. So when you finally have the table appear, if you have inserted another section, it will be as if the table only ever appeared in that last section. To fix this issue, we can utilize a new counter that increments alongside the ...


1

(By request, here's my comment posted as an answer. You should be on the lookout for a specialised chemistry package to typeset such equations in a clear and consistent way — the advice in this answer is generic to displayed math in general.) You only need to use a displayed math environment such as equation or gather, if you want to display a single ...



Only top voted, non community-wiki answers of a minimum length are eligible