Tag Info

Hot answers tagged

6

For pdfTeX: \documentclass{report} \pagenumbering{Roman} \begin{document} \chapter{chap1} Bla bla bla \cleardoublepage % Best place at the start of the Arabic numbered pages % after \cleardoublepage and before the page number is % reset in \pagenumbering{arabic}. \pdfcatalog{% /PageLabels<<% /Nums[% % Page numbers are zero based. ...


5

To achieve your objective, you should load the natbib package with the option authoyear, load the hyperref package, and use the optional argument of the \bibitem macro to provide the pieces of information that are needed to form the authoryear-style citation callouts. Note that there must not be a space between the author's name (or authors' names) and ...


4

\newcommand{\mymacro}[2]{%% \expandafter\providecommand\expandafter *\csname#1autorefname\endcsname{#2}%% } then if #1 is zzz \zzzautorefname will be defined.


3

The penalties are not used in a bibitem, but only in \biburlsetup which is done at the begin of the bibliography. If you want to change the settings for one bibitem, you should call the url setup again: \AtEveryBibitem{% \ifcategory{badbreaks} {\defcounter{biburllcpenalty}{9000}\biburlsetup} {}} Output with OP MWE (\def\mybiburlval{0}):


3

Add \usepackage{bookmark}. It implements a more robust algorithm with duplicate anchors and broken section structure. Maybe it is able to fix some of the issues. But it cannot correct the LaTeX code: Setting \tableofcontents twice does not make sense. The entry for the table of contents in the table of contents is put after the table of contents. The page ...


3

Pass the option to the package. \documentclass[headinclude=true,footinclude=true]{scrreprt} \PassOptionsToPackage{hyperfootnotes=false}{hyperref} \usepackage{classicthesis} \setlength{\textheight}{3cm} \begin{document} Pogo penguin\footnote{this is not a lazy leguan} \end{document}


2

Also, the LaTeX kernel provides \@namedef for this: \makeatletter \newcommand*{\mymacro}[2]{% \@namedef{#1autorefname}{#2}% } \maketatother Indeed, the task you want to accomplish is a pretty common one: just think of how labels for cross-referencing are defined. Caveat: In contrast with the \providecommand solution, \@namedef will silently overwrite a ...


2

An expl3 way to do this could be: \usepackage{xparse} \ExplSyntaxOn \cs_new:Npn \mathfortyfive_maybe_define:Nn #1#2 { \cs_if_free:NT #1 { \cs_new_nopar:Npn #1 {#2} } } \cs_generate_variant:Nn \mathfortyfive_maybe_define:Nn { cn } \NewDocumentCommand \mymacro { mm } { \mathfortyfive_maybe_define:cn { #1 autorefname } { #2 } } \ExplSyntaxOff There may ...


2

I figured this out actually while posting the question, but figured I'd post it, plus this answer, anyway, since I couldn't find the answer by searching. All I had to do was take out "draft" from the documentclass options!


1

An easy way to keep the link while hiding the URL is to set your URL in the corresponding entry in the .bib file like this: note = {\href{http://www.something.com}{View online}} instead of this url = {http://www.something.com} But it won't create a link over the whole entry. EDIT: minimal example .tex file: \documentclass[a4paper,11pt,oneside]{book} ...



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