29 views

### How can I obtain the date in two digit format? [duplicate]

I use the following code in my preamble to automatically set the urldate field. However it outputs date as say 2015/2/2, instead of 2015/02/02, which Biber doesn't like. How can I modify the code to ...
12k views

### How to output a counter with leading zeros?

I can output the value of a counter in a LaTeX document via: \setcounter{mycounter}{1} \arabic{mycounter} Which inserts a 1. But how do I format the output by, for example, adding a leading zero if ...
566 views

### Number chapters as 01, 02, … , 10, 11, … appendices A, B

Minimal example (the problem is obvious): \documentclass[]{report} \makeatletter \def\@makechapterhead#1{ \vspace*{-5.0em} {\parindent \z@ \normalfont \interlinepenalty\@M \LARGE{0\...
236 views

### Have \foreach restart or loop

I understand that trying to have a "loop function" like \foreach loop sounds like a paradox but I'll try to explain what I mean. Recently, I've asked a question about automatising the creation of ...
3k views

### Iterating over files in a directory and including them

I have a folder called diary which contains a series of files: 20120101.tex 20120105.tex 20120304.tex etc. How can I create a single LaTeX document that includes each of these files, in alphabetical ...
3k views

### How can I use \DTLloaddb package to create a table based on csv file?

I am new in Latex and I have some issues. I have succeeded in reading the .csv file: ,w5,w6,w7,w8,w9,w10,w11,w12,w13,w14,w15,w16,w17,w18,w19,w20,w21,w22,w23,w24 ,25,23,13,14,15,39,36,4,37,11,26,13,34,...
747 views

### Help with US Date Format

I have searched the isodate package and the datetime2 package to answer my question. I would like my date to be mm/dd/yyyy. The closest I have gotten is to have the date as dd/mm/yyyy. Could someone ...
488 views

### Easy way to sectioning with a leading zero [duplicate]

There is a easy way to modify only this command \renewcommand\thesection{\arabic{section}.} in order to have an arabic counter with just one leading zero instead the original arabic without leading ...
202 views

### Two digits chapter numbering in tableofcontents

Scraping through the documentation I managed to make so that \chapter generates a trailing 0 before the chapter number if the chapter number is smaller than 10. I would like to do the same for table ...
51 views

### How to add a date into the name field of includepdf?

I'm using Sweave to automate the creation of a report, and I want to include a PDF into my document, but the PDF and its name are updated daily (because they are produced using Sweave). For example ...