Change “part” to “act” in a Lyx custom layout file?In Lyx, how to change “Part I” with some other...
A flower in a hexagon
Why is c4 a better move in this position?
Strange Sign on Lab Door
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Overfitting and Underfitting
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Do authors have to be politically correct in article-writing?
How should I handle players who ignore the session zero agreement?
math reviews in "Zentralblatt für Mathematik und ihre Grenzgebiete"
Copy large no of files of specific date to another directory?
How can I deal with a significant flaw I found in my previous supervisor’s paper?
Does Windows 10's telemetry include sending *.doc files if Word crashed?
How long would gestation period be for dwarfs?
Numbers of Exaggeration in Talmud
List of numbers giving a particular sum
How do you funnel food off a cutting board?
Why is button three on trumpet almost never used alone?
How to properly claim credit for peer review?
Is there a kind of consulting service in Buddhism?
How experienced do I need to be to go on a photography workshop?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
I am on the US no-fly list. What can I do in order to be allowed on flights which go through US airspace?
Am I using the wrong word all along?
Eww, those bytes are gross
Change “part” to “act” in a Lyx custom layout file?
In Lyx, how to change “Part I” with some other textLyX layout for EurographicsProblem with changing refname with autoref in LyxIn Lyx, how to change “Part I” with some other textLyX 2.1 Report Class Changing Part to Other Text When Using non-TeX fonts (via XeTeX/LuaTeX)LyX cannot output to pdflatex for a specific fileInstalling new lyx layout: where are my layout files?Figure numbers in Lyx and PDF are differnt!Changing layouts without restarting LyX?Layout File for LyXHow to change to strikethrough font styles in LyX editor through Layout file?
I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts
.
This question tells how to add a line to the preamble via the menu:
renewcommandpartname{Act}
I'd like to keep all of my formatting in the layout file if possible and avoid setting things in the Lyx menus.
So I added that line to the Preamble
section of my layout file, and also tried
renewcommand{partname}{Experiment}
but it does not work. After re-configuring, restarting and re-rendering the PDF, the parts are still called "part".
Is there a way to make this change ("part" to "act") work from the layout file?
And is there a way to make the editor reflect this change from within the layout file, without changing the default definition of the book
class (which my layout file extends).
My Lyx version is 2.2.3 on Linux.
Update: Maybe renewcommand{partname}{Act}
is the wrong command, as it doesn't work if you put it in the LATEX preamble section in Lyx document settings either.
Update two: here's a striped down layout file:
# DeclareLaTeXClass[book]{book (My Book Style)}
# Input general definitions
Input stdclass.inc
MaxCounter Counter_Section
SecNumDepth 3
Preamble
% Tell the TOC not to include any levels below "chapter"
setcounter{tocdepth}{0}
% Change "Part" to "Act"
AtBeginDocument{renewcommand{partname}{Act}}
EndPreamble
sectioning lyx parts lyx-layouts
|
show 1 more comment
I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts
.
This question tells how to add a line to the preamble via the menu:
renewcommandpartname{Act}
I'd like to keep all of my formatting in the layout file if possible and avoid setting things in the Lyx menus.
So I added that line to the Preamble
section of my layout file, and also tried
renewcommand{partname}{Experiment}
but it does not work. After re-configuring, restarting and re-rendering the PDF, the parts are still called "part".
Is there a way to make this change ("part" to "act") work from the layout file?
And is there a way to make the editor reflect this change from within the layout file, without changing the default definition of the book
class (which my layout file extends).
My Lyx version is 2.2.3 on Linux.
Update: Maybe renewcommand{partname}{Act}
is the wrong command, as it doesn't work if you put it in the LATEX preamble section in Lyx document settings either.
Update two: here's a striped down layout file:
# DeclareLaTeXClass[book]{book (My Book Style)}
# Input general definitions
Input stdclass.inc
MaxCounter Counter_Section
SecNumDepth 3
Preamble
% Tell the TOC not to include any levels below "chapter"
setcounter{tocdepth}{0}
% Change "Part" to "Act"
AtBeginDocument{renewcommand{partname}{Act}}
EndPreamble
sectioning lyx parts lyx-layouts
Maybe tryAtBeginDocument{renewcommand{partname}{Experiment}}
?
– Bernard
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
1
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago
|
show 1 more comment
I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts
.
This question tells how to add a line to the preamble via the menu:
renewcommandpartname{Act}
I'd like to keep all of my formatting in the layout file if possible and avoid setting things in the Lyx menus.
So I added that line to the Preamble
section of my layout file, and also tried
renewcommand{partname}{Experiment}
but it does not work. After re-configuring, restarting and re-rendering the PDF, the parts are still called "part".
Is there a way to make this change ("part" to "act") work from the layout file?
And is there a way to make the editor reflect this change from within the layout file, without changing the default definition of the book
class (which my layout file extends).
My Lyx version is 2.2.3 on Linux.
Update: Maybe renewcommand{partname}{Act}
is the wrong command, as it doesn't work if you put it in the LATEX preamble section in Lyx document settings either.
Update two: here's a striped down layout file:
# DeclareLaTeXClass[book]{book (My Book Style)}
# Input general definitions
Input stdclass.inc
MaxCounter Counter_Section
SecNumDepth 3
Preamble
% Tell the TOC not to include any levels below "chapter"
setcounter{tocdepth}{0}
% Change "Part" to "Act"
AtBeginDocument{renewcommand{partname}{Act}}
EndPreamble
sectioning lyx parts lyx-layouts
I have a custom layout file that is attached to my document and used by Lyx. The file is in ~/.lyx/layouts
.
This question tells how to add a line to the preamble via the menu:
renewcommandpartname{Act}
I'd like to keep all of my formatting in the layout file if possible and avoid setting things in the Lyx menus.
So I added that line to the Preamble
section of my layout file, and also tried
renewcommand{partname}{Experiment}
but it does not work. After re-configuring, restarting and re-rendering the PDF, the parts are still called "part".
Is there a way to make this change ("part" to "act") work from the layout file?
And is there a way to make the editor reflect this change from within the layout file, without changing the default definition of the book
class (which my layout file extends).
My Lyx version is 2.2.3 on Linux.
Update: Maybe renewcommand{partname}{Act}
is the wrong command, as it doesn't work if you put it in the LATEX preamble section in Lyx document settings either.
Update two: here's a striped down layout file:
# DeclareLaTeXClass[book]{book (My Book Style)}
# Input general definitions
Input stdclass.inc
MaxCounter Counter_Section
SecNumDepth 3
Preamble
% Tell the TOC not to include any levels below "chapter"
setcounter{tocdepth}{0}
% Change "Part" to "Act"
AtBeginDocument{renewcommand{partname}{Act}}
EndPreamble
sectioning lyx parts lyx-layouts
sectioning lyx parts lyx-layouts
edited 16 hours ago
Nick
asked 19 hours ago
NickNick
1064
1064
Maybe tryAtBeginDocument{renewcommand{partname}{Experiment}}
?
– Bernard
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
1
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago
|
show 1 more comment
Maybe tryAtBeginDocument{renewcommand{partname}{Experiment}}
?
– Bernard
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
1
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago
Maybe try
AtBeginDocument{renewcommand{partname}{Experiment}}
?– Bernard
18 hours ago
Maybe try
AtBeginDocument{renewcommand{partname}{Experiment}}
?– Bernard
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
1
1
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago
|
show 1 more 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%2f477474%2fchange-part-to-act-in-a-lyx-custom-layout-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
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%2f477474%2fchange-part-to-act-in-a-lyx-custom-layout-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');
});
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
Maybe try
AtBeginDocument{renewcommand{partname}{Experiment}}
?– Bernard
18 hours ago
@Bernard: that didn't work.
– Nick
18 hours ago
@Nick I would separate the problem to figure out whether the problem is with the LyX layout definition or with the LaTeX. Thus, first I would try to make a minimal LaTeX example and make sure it does what you want. Then the question is how to get the layout to produce that LaTeX.
– scottkosty
18 hours ago
Hi @scottkosty: I just tried placing the line in LATEX preamble section of "document settings" via the Lyx menu and it did not work there either.
– Nick
18 hours ago
1
Could you post a minimal code that reproduces the problem?
– Bernard
18 hours ago