Outputting a custom glossary to a separate fileWhat do makeatletter and makeatother do?Outputting internal at-macro via newcommand?Arbitrary text parsing from a separate fileCreate all queries in separate file like listoffigureAdd custom caption to LOT fileTeXstudio: Is there a way to keep my custom macros and shortcuts in a separate file?insert newcommand* in GlossaryAutomatic export of abstract to separate text fileHow to use a user-defined command in glossary file?Passing string options to custom style file, made simple?Bilingual glossary
Can a druid choose the size of its wild shape beast?
Unexpected result from ArcLength
Welcoming 2019 Pi day: How to draw the letter π?
In a future war, an old lady is trying to raise a boy but one of the weapons has made everyone deaf
Can I use USB data pins as power source
Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is
Instead of Universal Basic Income, why not Universal Basic NEEDS?
Why one should not leave fingerprints on bulbs and plugs?
Identifying the interval from A♭ to D♯
What approach do we need to follow for projects without a test environment?
Why did it take so long to abandon sail after steamships were demonstrated?
How to deal with taxi scam when on vacation?
Combining an idiom with a metonymy
Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?
Python if-else code style for reduced code for rounding floats
Are ETF trackers fundamentally better than individual stocks?
What's the meaning of “spike” in the context of “adrenaline spike”?
What are substitutions for coconut in curry?
What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?
Brexit - No Deal Rejection
Employee lack of ownership
How to make healing in an exploration game interesting
Why doesn't using two cd commands in bash script execute the second command?
SOQL: Populate a Literal List in WHERE IN Clause
Outputting a custom glossary to a separate file
What do makeatletter and makeatother do?Outputting internal at-macro via newcommand?Arbitrary text parsing from a separate fileCreate all queries in separate file like listoffigureAdd custom caption to LOT fileTeXstudio: Is there a way to keep my custom macros and shortcuts in a separate file?insert newcommand* in GlossaryAutomatic export of abstract to separate text fileHow to use a user-defined command in glossary file?Passing string options to custom style file, made simple?Bilingual glossary
I'm working on the translation of a German book and have created the following macro so as to link some translated words and expressions to their original, which then I print at the end of the document:
documentclassbook
usepackage[brazil]babel
usepackagehyperref
usepackageenumitem
%%% Regulating dictionary entires
newcommandDicEntry[2]
%
hyperlink#1#2%
label#1%
newcommandDicShow[3]
%
footnotesize
beginenumerate[label=Pág. pageref#1 -]
item
hypertarget#1textbf#2
subitem #3
endenumerate
begindocument
%%% Excerpt of Translated Text
Ele é um homem de especial DicEntryredlichkeitnobreza...
%%% Excerpt of Dictionary Entries
DicShowredlichkeitRedlichkeit, die (-en):
Mit guten Absichten und großem Ernst.
enddocument
It looks like this:
It works fine all right, but I've been wondering if there's any way to make it more efficiente, as in thus:
- A command that reads back the text and outputs all the Dictionary Entries automatically, somewhat like the endnote package.
- Outputting the glossary to a separate file, all of which I'll combine later.
I appreciate any ideas.
macros
New contributor
add a comment |
I'm working on the translation of a German book and have created the following macro so as to link some translated words and expressions to their original, which then I print at the end of the document:
documentclassbook
usepackage[brazil]babel
usepackagehyperref
usepackageenumitem
%%% Regulating dictionary entires
newcommandDicEntry[2]
%
hyperlink#1#2%
label#1%
newcommandDicShow[3]
%
footnotesize
beginenumerate[label=Pág. pageref#1 -]
item
hypertarget#1textbf#2
subitem #3
endenumerate
begindocument
%%% Excerpt of Translated Text
Ele é um homem de especial DicEntryredlichkeitnobreza...
%%% Excerpt of Dictionary Entries
DicShowredlichkeitRedlichkeit, die (-en):
Mit guten Absichten und großem Ernst.
enddocument
It looks like this:
It works fine all right, but I've been wondering if there's any way to make it more efficiente, as in thus:
- A command that reads back the text and outputs all the Dictionary Entries automatically, somewhat like the endnote package.
- Outputting the glossary to a separate file, all of which I'll combine later.
I appreciate any ideas.
macros
New contributor
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
On your deleted “answer”: to use commands with@
in their names you need to surround the definition withmakeatletter
andmakeatother
.
– Phelype Oleinik
6 hours ago
add a comment |
I'm working on the translation of a German book and have created the following macro so as to link some translated words and expressions to their original, which then I print at the end of the document:
documentclassbook
usepackage[brazil]babel
usepackagehyperref
usepackageenumitem
%%% Regulating dictionary entires
newcommandDicEntry[2]
%
hyperlink#1#2%
label#1%
newcommandDicShow[3]
%
footnotesize
beginenumerate[label=Pág. pageref#1 -]
item
hypertarget#1textbf#2
subitem #3
endenumerate
begindocument
%%% Excerpt of Translated Text
Ele é um homem de especial DicEntryredlichkeitnobreza...
%%% Excerpt of Dictionary Entries
DicShowredlichkeitRedlichkeit, die (-en):
Mit guten Absichten und großem Ernst.
enddocument
It looks like this:
It works fine all right, but I've been wondering if there's any way to make it more efficiente, as in thus:
- A command that reads back the text and outputs all the Dictionary Entries automatically, somewhat like the endnote package.
- Outputting the glossary to a separate file, all of which I'll combine later.
I appreciate any ideas.
macros
New contributor
I'm working on the translation of a German book and have created the following macro so as to link some translated words and expressions to their original, which then I print at the end of the document:
documentclassbook
usepackage[brazil]babel
usepackagehyperref
usepackageenumitem
%%% Regulating dictionary entires
newcommandDicEntry[2]
%
hyperlink#1#2%
label#1%
newcommandDicShow[3]
%
footnotesize
beginenumerate[label=Pág. pageref#1 -]
item
hypertarget#1textbf#2
subitem #3
endenumerate
begindocument
%%% Excerpt of Translated Text
Ele é um homem de especial DicEntryredlichkeitnobreza...
%%% Excerpt of Dictionary Entries
DicShowredlichkeitRedlichkeit, die (-en):
Mit guten Absichten und großem Ernst.
enddocument
It looks like this:
It works fine all right, but I've been wondering if there's any way to make it more efficiente, as in thus:
- A command that reads back the text and outputs all the Dictionary Entries automatically, somewhat like the endnote package.
- Outputting the glossary to a separate file, all of which I'll combine later.
I appreciate any ideas.
macros
macros
New contributor
New contributor
edited 9 hours ago
Daniel Hadad
New contributor
asked yesterday
Daniel HadadDaniel Hadad
62
62
New contributor
New contributor
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
On your deleted “answer”: to use commands with@
in their names you need to surround the definition withmakeatletter
andmakeatother
.
– Phelype Oleinik
6 hours ago
add a comment |
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
On your deleted “answer”: to use commands with@
in their names you need to surround the definition withmakeatletter
andmakeatother
.
– Phelype Oleinik
6 hours ago
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
On your deleted “answer”: to use commands with
@
in their names you need to surround the definition with makeatletter
and makeatother
.– Phelype Oleinik
6 hours ago
On your deleted “answer”: to use commands with
@
in their names you need to surround the definition with makeatletter
and makeatother
.– Phelype Oleinik
6 hours ago
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
);
);
Daniel Hadad 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%2f479473%2foutputting-a-custom-glossary-to-a-separate-file%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
Daniel Hadad is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Hadad is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Hadad is a new contributor. Be nice, and check out our Code of Conduct.
Daniel Hadad 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%2f479473%2foutputting-a-custom-glossary-to-a-separate-file%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
Welcome to TeX.SE! Can you please make your code snippet compilable resulting in the screenshot you showed? BTW: German word "Redlichkeit" is written with capital R. :-)
– Kurt
yesterday
On your deleted “answer”: to use commands with
@
in their names you need to surround the definition withmakeatletter
andmakeatother
.– Phelype Oleinik
6 hours ago