How can I automatically add the date to the output PDF file name?Add date in output nameCan one TeX file output to multiple PDF files?Automatically create two PDF output files from one tex fileTexmaker / TeXstudio does not compile XeLaTeX with MiKTeX portableCannot compile PDFpdfTeX error font ppl8r not foundCreating exe file with pdf outputHow can I write the date in french?XeLaTeX version of pdfinfoomitdate (or method to accomplish the same)?Moderncv does not create PDFHow to to add “th” or “rd” to the date
Could the Saturn V actually have launched astronauts around Venus?
Why one should not leave fingerprints on bulbs and plugs?
Are ETF trackers fundamentally better than individual stocks?
What do Xenomorphs eat in the Alien series?
Does Mathematica reuse previous computations?
What are substitutions for coconut in curry?
Recruiter wants very extensive technical details about all of my previous work
Time travel from stationary position?
What should tie a collection of short-stories together?
Does someone need to be connected to my network to sniff HTTP requests?
Are there other languages, besides English, where the indefinite (or definite) article varies based on sound?
Official degrees of earth’s rotation per day
How big is a MODIS 250m pixel in reality?
Python if-else code style for reduced code for rounding floats
How do I hide Chekhov's Gun?
Did Ender ever learn that he killed Stilson and/or Bonzo?
Instead of Universal Basic Income, why not Universal Basic NEEDS?
If curse and magic is two sides of the same coin, why the former is forbidden?
Can I use USB data pins as power source
Gravity magic - How does it work?
What is the domain in a tikz parametric plot?
Why do passenger jet manufacturers design their planes with stall prevention systems?
SOQL: Populate a Literal List in WHERE IN Clause
My adviser wants to be the first author
How can I automatically add the date to the output PDF file name?
Add date in output nameCan one TeX file output to multiple PDF files?Automatically create two PDF output files from one tex fileTexmaker / TeXstudio does not compile XeLaTeX with MiKTeX portableCannot compile PDFpdfTeX error font ppl8r not foundCreating exe file with pdf outputHow can I write the date in french?XeLaTeX version of pdfinfoomitdate (or method to accomplish the same)?Moderncv does not create PDFHow to to add “th” or “rd” to the date
Currently when I generate a PDF file of my document, it produces the name
document1.pdf
I'd like to set it so that it adds the current date (or the date produced by datetoday
), such as
document1_March_15_2019.pdf
or however it may produce the date. Is there a method to do that? The closest I found was this link but I'm not using an emac or pdftex, I think. I am using TexMaker on a Mac OS Mojave.
compiling date
New contributor
add a comment |
Currently when I generate a PDF file of my document, it produces the name
document1.pdf
I'd like to set it so that it adds the current date (or the date produced by datetoday
), such as
document1_March_15_2019.pdf
or however it may produce the date. Is there a method to do that? The closest I found was this link but I'm not using an emac or pdftex, I think. I am using TexMaker on a Mac OS Mojave.
compiling date
New contributor
The command datetoday is aLaTeX
command that will get its value during compilation from theTeX
distro (for exampleTeX Live
orMacTeX
) that yourTeXmaker
is using. So,TeXmaker
will never see this output of this command but will just let it printed in your pdf document via yourTeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the.pdf
extension in yourTeXmaker
options at the output filename.
– koleygr
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with.tex
changed to.pdf
so if you save the file ashs-nebula.tex
then the generated file will behs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)
– David Carlisle
9 hours ago
add a comment |
Currently when I generate a PDF file of my document, it produces the name
document1.pdf
I'd like to set it so that it adds the current date (or the date produced by datetoday
), such as
document1_March_15_2019.pdf
or however it may produce the date. Is there a method to do that? The closest I found was this link but I'm not using an emac or pdftex, I think. I am using TexMaker on a Mac OS Mojave.
compiling date
New contributor
Currently when I generate a PDF file of my document, it produces the name
document1.pdf
I'd like to set it so that it adds the current date (or the date produced by datetoday
), such as
document1_March_15_2019.pdf
or however it may produce the date. Is there a method to do that? The closest I found was this link but I'm not using an emac or pdftex, I think. I am using TexMaker on a Mac OS Mojave.
compiling date
compiling date
New contributor
New contributor
edited 9 hours ago
samcarter
91.7k7105297
91.7k7105297
New contributor
asked 10 hours ago
HS-nebulaHS-nebula
1064
1064
New contributor
New contributor
The command datetoday is aLaTeX
command that will get its value during compilation from theTeX
distro (for exampleTeX Live
orMacTeX
) that yourTeXmaker
is using. So,TeXmaker
will never see this output of this command but will just let it printed in your pdf document via yourTeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the.pdf
extension in yourTeXmaker
options at the output filename.
– koleygr
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with.tex
changed to.pdf
so if you save the file ashs-nebula.tex
then the generated file will behs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)
– David Carlisle
9 hours ago
add a comment |
The command datetoday is aLaTeX
command that will get its value during compilation from theTeX
distro (for exampleTeX Live
orMacTeX
) that yourTeXmaker
is using. So,TeXmaker
will never see this output of this command but will just let it printed in your pdf document via yourTeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the.pdf
extension in yourTeXmaker
options at the output filename.
– koleygr
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with.tex
changed to.pdf
so if you save the file ashs-nebula.tex
then the generated file will behs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)
– David Carlisle
9 hours ago
The command datetoday is a
LaTeX
command that will get its value during compilation from the TeX
distro (for example TeX Live
or MacTeX
) that your TeXmaker
is using. So, TeXmaker
will never see this output of this command but will just let it printed in your pdf document via your TeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the .pdf
extension in your TeXmaker
options at the output filename.– koleygr
9 hours ago
The command datetoday is a
LaTeX
command that will get its value during compilation from the TeX
distro (for example TeX Live
or MacTeX
) that your TeXmaker
is using. So, TeXmaker
will never see this output of this command but will just let it printed in your pdf document via your TeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the .pdf
extension in your TeXmaker
options at the output filename.– koleygr
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with
.tex
changed to .pdf
so if you save the file as hs-nebula.tex
then the generated file will be hs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)– David Carlisle
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with
.tex
changed to .pdf
so if you save the file as hs-nebula.tex
then the generated file will be hs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)– David Carlisle
9 hours ago
add a comment |
1 Answer
1
active
oldest
votes
For editors that execute commands in a bash-based shell, you can modify the preferences of your editor to compile with
mydate=$(date +'%B_%d_%Y') ; pdflatex --jobname="document1_$mydate" %.tex
This will generate a pdf called document1_March_15_2019.pdf
1
Nice (+1)... I suggest an edit to remove theTeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor
– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
|
show 3 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
HS-nebula is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479662%2fhow-can-i-automatically-add-the-date-to-the-output-pdf-file-name%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
For editors that execute commands in a bash-based shell, you can modify the preferences of your editor to compile with
mydate=$(date +'%B_%d_%Y') ; pdflatex --jobname="document1_$mydate" %.tex
This will generate a pdf called document1_March_15_2019.pdf
1
Nice (+1)... I suggest an edit to remove theTeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor
– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
|
show 3 more comments
For editors that execute commands in a bash-based shell, you can modify the preferences of your editor to compile with
mydate=$(date +'%B_%d_%Y') ; pdflatex --jobname="document1_$mydate" %.tex
This will generate a pdf called document1_March_15_2019.pdf
1
Nice (+1)... I suggest an edit to remove theTeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor
– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
|
show 3 more comments
For editors that execute commands in a bash-based shell, you can modify the preferences of your editor to compile with
mydate=$(date +'%B_%d_%Y') ; pdflatex --jobname="document1_$mydate" %.tex
This will generate a pdf called document1_March_15_2019.pdf
For editors that execute commands in a bash-based shell, you can modify the preferences of your editor to compile with
mydate=$(date +'%B_%d_%Y') ; pdflatex --jobname="document1_$mydate" %.tex
This will generate a pdf called document1_March_15_2019.pdf
edited 9 hours ago
answered 9 hours ago
samcartersamcarter
91.7k7105297
91.7k7105297
1
Nice (+1)... I suggest an edit to remove theTeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor
– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
|
show 3 more comments
1
Nice (+1)... I suggest an edit to remove theTeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor
– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
1
1
Nice (+1)... I suggest an edit to remove the
TeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor– koleygr
9 hours ago
Nice (+1)... I suggest an edit to remove the
TeXmaker
tag and the TeXmaker from the title to make the question/answer just specific to the OS (Linux/Mac) and not to the editor– koleygr
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
@koleygr Feel free to edit
– samcarter
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Just to clarify, do I add this to the PdfLaTeX box in texmaker >> Preferences or is this a user command?
– HS-nebula
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
Was commenting to ask the OP... but he did it before my question...
– koleygr
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
@HS-nebula You can do it either way. If you want to compile all your documents like this, you could directly modify the pdflatex preferences, if you only want to use it occasionally, a separate command might be better.
– samcarter
9 hours ago
|
show 3 more comments
HS-nebula is a new contributor. Be nice, and check out our Code of Conduct.
HS-nebula is a new contributor. Be nice, and check out our Code of Conduct.
HS-nebula is a new contributor. Be nice, and check out our Code of Conduct.
HS-nebula is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479662%2fhow-can-i-automatically-add-the-date-to-the-output-pdf-file-name%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The command datetoday is a
LaTeX
command that will get its value during compilation from theTeX
distro (for exampleTeX Live
orMacTeX
) that yourTeXmaker
is using. So,TeXmaker
will never see this output of this command but will just let it printed in your pdf document via yourTeX
distro. So, try to find out if texmaker have available in a variable the current date and add this variable before the.pdf
extension in yourTeXmaker
options at the output filename.– koleygr
9 hours ago
the pdf is made by latex (not texmaker) and is just the filename of your source file with
.tex
changed to.pdf
so if you save the file ashs-nebula.tex
then the generated file will behs-nebula.pdf
document1
is presumably just a default file name if you start a blank file without saving it to a specific name (although I don't use texmaker to be sure)– David Carlisle
9 hours ago