mail merge and create multiple pdfsCan one TeX file output to multiple PDF files?Cannot build file on...
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
Metadata API deployments are failing in Spring '19
Predict mars robot position
Why is working on the same position for more than 15 years not a red flag?
Why is commutativity optional in multiplication for rings?
Why didn't Eru and/or the Valar intervene when Sauron corrupted Númenor?
A Wacky, Wacky Chessboard (That Makes No Sense)
Can a person refuse a presidential pardon?
raspberry pi change directory (cd) command not working with USB drive
Meth dealer reference in Family Guy
Do my Windows system binaries contain sensitive information?
If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?
Can I retract my name from an already published manuscript?
Table enclosed in curly brackets
What's a good word to describe a public place that looks like it wouldn't be rough?
Incompressible fluid definition
How to mitigate "bandwagon attacking" from players?
Yeshiva University RIETS Semicha Yorei and Yadin
Removing debris from PCB
Wanted: 5.25 floppy to usb adapter
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
Is my plan for fixing my water heater leak bad?
mail merge and create multiple pdfs
Can one TeX file output to multiple PDF files?Cannot build file on Editorial ManagerMultiple Documents by Different Authors and One Table of ContentsManaging multiple tex files using include and ../generate multiple documentsMultiple image and subfigure in my documentOutput multiple PDFs after specification in the code?Cross-Referencing (Number and Title/Name) between Different/Multiple Documentsforeach LaTeX input file, output a PDF fileProducing multiple PDFs with different package options calledreference undefined at multiple files
I have a .csv
file called sbriefdata
with some data in it, for example
A;B;10
C;D;20
E;F;30
G;H;40
and I want a separate .pdf
file for each of the rows in the .csv
file. I know how to do a mail merge by reading the data and I know how to create separate .pdf
files from this question (I use the solution provided by Ulrike Fischer). However, I am unable to combine these two features to get what I want. I tried
documentclass{article}
newififmore moretrue
defchopline#1;#2;#3\{
defname{#1}
defvorname{#2}
defpunkte{#3}
}
begin{document}
newreaddata
openindata=sbriefdata.csv
loop
readdata to line
ifeofdata
globalmorefalse
else
expandafterchoplineline\
ifxconditionmacroundefined
immediatewrite18{%
pdflatex --jobname="jobname-name"
"gdefstringconditionmacro{name}stringinputspacejobname"
}%
expandafterstop
fi
vorname name punkte newline
fi
ifmorerepeat
closeindata
end{document}
but this only produces a single PDF named jobname-A with all the data instead of four different PDFs. It seems I don't fully understand the commands to build multiple PDFs (I thought since it is in a loop it should produce multiple PDFs). So I would like to know
1) How I can change my code to get multiple PDFs and/or
2) What exactly do the commands between ifx
and fi
do? E.g, why is the line ifxconditionmacroundefined
important and what does "gdefstringconditionmacro{name}stringinputspacejobname"
do?
compiling shell-escape multiple-files
This question has an open bounty worth +100
reputation from Martin ending in 7 days.
This question has not received enough attention.
add a comment |
I have a .csv
file called sbriefdata
with some data in it, for example
A;B;10
C;D;20
E;F;30
G;H;40
and I want a separate .pdf
file for each of the rows in the .csv
file. I know how to do a mail merge by reading the data and I know how to create separate .pdf
files from this question (I use the solution provided by Ulrike Fischer). However, I am unable to combine these two features to get what I want. I tried
documentclass{article}
newififmore moretrue
defchopline#1;#2;#3\{
defname{#1}
defvorname{#2}
defpunkte{#3}
}
begin{document}
newreaddata
openindata=sbriefdata.csv
loop
readdata to line
ifeofdata
globalmorefalse
else
expandafterchoplineline\
ifxconditionmacroundefined
immediatewrite18{%
pdflatex --jobname="jobname-name"
"gdefstringconditionmacro{name}stringinputspacejobname"
}%
expandafterstop
fi
vorname name punkte newline
fi
ifmorerepeat
closeindata
end{document}
but this only produces a single PDF named jobname-A with all the data instead of four different PDFs. It seems I don't fully understand the commands to build multiple PDFs (I thought since it is in a loop it should produce multiple PDFs). So I would like to know
1) How I can change my code to get multiple PDFs and/or
2) What exactly do the commands between ifx
and fi
do? E.g, why is the line ifxconditionmacroundefined
important and what does "gdefstringconditionmacro{name}stringinputspacejobname"
do?
compiling shell-escape multiple-files
This question has an open bounty worth +100
reputation from Martin ending in 7 days.
This question has not received enough attention.
add a comment |
I have a .csv
file called sbriefdata
with some data in it, for example
A;B;10
C;D;20
E;F;30
G;H;40
and I want a separate .pdf
file for each of the rows in the .csv
file. I know how to do a mail merge by reading the data and I know how to create separate .pdf
files from this question (I use the solution provided by Ulrike Fischer). However, I am unable to combine these two features to get what I want. I tried
documentclass{article}
newififmore moretrue
defchopline#1;#2;#3\{
defname{#1}
defvorname{#2}
defpunkte{#3}
}
begin{document}
newreaddata
openindata=sbriefdata.csv
loop
readdata to line
ifeofdata
globalmorefalse
else
expandafterchoplineline\
ifxconditionmacroundefined
immediatewrite18{%
pdflatex --jobname="jobname-name"
"gdefstringconditionmacro{name}stringinputspacejobname"
}%
expandafterstop
fi
vorname name punkte newline
fi
ifmorerepeat
closeindata
end{document}
but this only produces a single PDF named jobname-A with all the data instead of four different PDFs. It seems I don't fully understand the commands to build multiple PDFs (I thought since it is in a loop it should produce multiple PDFs). So I would like to know
1) How I can change my code to get multiple PDFs and/or
2) What exactly do the commands between ifx
and fi
do? E.g, why is the line ifxconditionmacroundefined
important and what does "gdefstringconditionmacro{name}stringinputspacejobname"
do?
compiling shell-escape multiple-files
I have a .csv
file called sbriefdata
with some data in it, for example
A;B;10
C;D;20
E;F;30
G;H;40
and I want a separate .pdf
file for each of the rows in the .csv
file. I know how to do a mail merge by reading the data and I know how to create separate .pdf
files from this question (I use the solution provided by Ulrike Fischer). However, I am unable to combine these two features to get what I want. I tried
documentclass{article}
newififmore moretrue
defchopline#1;#2;#3\{
defname{#1}
defvorname{#2}
defpunkte{#3}
}
begin{document}
newreaddata
openindata=sbriefdata.csv
loop
readdata to line
ifeofdata
globalmorefalse
else
expandafterchoplineline\
ifxconditionmacroundefined
immediatewrite18{%
pdflatex --jobname="jobname-name"
"gdefstringconditionmacro{name}stringinputspacejobname"
}%
expandafterstop
fi
vorname name punkte newline
fi
ifmorerepeat
closeindata
end{document}
but this only produces a single PDF named jobname-A with all the data instead of four different PDFs. It seems I don't fully understand the commands to build multiple PDFs (I thought since it is in a loop it should produce multiple PDFs). So I would like to know
1) How I can change my code to get multiple PDFs and/or
2) What exactly do the commands between ifx
and fi
do? E.g, why is the line ifxconditionmacroundefined
important and what does "gdefstringconditionmacro{name}stringinputspacejobname"
do?
compiling shell-escape multiple-files
compiling shell-escape multiple-files
edited 3 hours ago
JouleV
4,6861939
4,6861939
asked Feb 2 at 16:43
MartinMartin
149114
149114
This question has an open bounty worth +100
reputation from Martin ending in 7 days.
This question has not received enough attention.
This question has an open bounty worth +100
reputation from Martin ending in 7 days.
This question has not received enough attention.
add a comment |
add a comment |
0
active
oldest
votes
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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%2f473056%2fmail-merge-and-create-multiple-pdfs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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');
});
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%2f473056%2fmail-merge-and-create-multiple-pdfs%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');
});
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');
});
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');
});
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