How do I remove all occurrences of certain latex commands from a tex fileConvert string to file name and use...

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Can a vampire attack twice with their claws using Multiattack?

Is it possible to run Internet Explorer on OS X El Capitan?

Roll the carpet

Codimension of non-flat locus

Why can't I see bouncing of switch on oscilloscope screen?

Revoked SSL certificate

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Was any UN Security Council vote triple-vetoed?

What does "Puller Prush Person" mean?

Why do I get two different answers for this counting problem?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Is it inappropriate for a student to attend their mentor's dissertation defense?

Can a monk's single staff be considered dual wielded, as per the Dual Wielder feat?

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

What typically incentivizes a professor to change jobs to a lower ranking university?

How to format long polynomial?

Rock identification in KY

NMaximize is not converging to a solution

How does quantile regression compare to logistic regression with the variable split at the quantile?

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

What are these boxed doors outside store fronts in New York?



How do I remove all occurrences of certain latex commands from a tex file


Convert string to file name and use in hrefHow to redefine commands and environments, and make them acceptable for `write`Command which replaces all occurrences of a certain character with another character?Include LaTeX commands from external file in asymptote filelist of all used commands in compiled *.tex-documentsAutomatically colourize all occurrences of certain strings (different colouring for different sets of words)Macros that define other macros, which also define other macroslabel: escape or remove LaTeX commandsHow to disable grouping for includestandaloneinput inside newcommand and macro parameters













0















In my tex file I have a bunch of commands of the form bla{ ... }, where the ... may span several lines. These commands bla{ ... } contain some notes for myself, and should be removed from the tex file before sending it to my publisher. Note that I am supposed to send the tex file, not the pdf, so I cannot simply redefine the bla macro to an empty macro. Any thoughts on how to do this as quickly as possible with a linux terminal command? (Or any other trick)










share|improve this question

























  • So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

    – Sigur
    9 hours ago











  • yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

    – mnr
    9 hours ago






  • 1





    So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

    – Sigur
    9 hours ago






  • 3





    Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

    – campa
    9 hours ago
















0















In my tex file I have a bunch of commands of the form bla{ ... }, where the ... may span several lines. These commands bla{ ... } contain some notes for myself, and should be removed from the tex file before sending it to my publisher. Note that I am supposed to send the tex file, not the pdf, so I cannot simply redefine the bla macro to an empty macro. Any thoughts on how to do this as quickly as possible with a linux terminal command? (Or any other trick)










share|improve this question

























  • So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

    – Sigur
    9 hours ago











  • yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

    – mnr
    9 hours ago






  • 1





    So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

    – Sigur
    9 hours ago






  • 3





    Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

    – campa
    9 hours ago














0












0








0








In my tex file I have a bunch of commands of the form bla{ ... }, where the ... may span several lines. These commands bla{ ... } contain some notes for myself, and should be removed from the tex file before sending it to my publisher. Note that I am supposed to send the tex file, not the pdf, so I cannot simply redefine the bla macro to an empty macro. Any thoughts on how to do this as quickly as possible with a linux terminal command? (Or any other trick)










share|improve this question
















In my tex file I have a bunch of commands of the form bla{ ... }, where the ... may span several lines. These commands bla{ ... } contain some notes for myself, and should be removed from the tex file before sending it to my publisher. Note that I am supposed to send the tex file, not the pdf, so I cannot simply redefine the bla macro to an empty macro. Any thoughts on how to do this as quickly as possible with a linux terminal command? (Or any other trick)







macros






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago









Mico

285k31388778




285k31388778










asked 9 hours ago









mnrmnr

1354




1354













  • So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

    – Sigur
    9 hours ago











  • yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

    – mnr
    9 hours ago






  • 1





    So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

    – Sigur
    9 hours ago






  • 3





    Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

    – campa
    9 hours ago



















  • So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

    – Sigur
    9 hours ago











  • yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

    – mnr
    9 hours ago






  • 1





    So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

    – Sigur
    9 hours ago






  • 3





    Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

    – campa
    9 hours ago

















So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

– Sigur
9 hours ago





So, what you want is to delete everything from bla{ to }? The problem is that you have to take care of nested braces, for example, bla{foo textit{faa}}. You can not delete until first }.

– Sigur
9 hours ago













yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

– mnr
9 hours ago





yes, even if there are new lines, and yes the nested braces are the one of the issues (also new lines).

– mnr
9 hours ago




1




1





So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

– Sigur
9 hours ago





So, maybe it is better to ask on another SE site, maybe StackOverflow, and ask how to manipulate text files and strings.

– Sigur
9 hours ago




3




3





Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

– campa
9 hours ago





Half joke, half serious: Does it take more time trying to find out a way to do this automatically or just doing it by hand? ;-)

– campa
9 hours ago










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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483382%2fhow-do-i-remove-all-occurrences-of-certain-latex-commands-from-a-tex-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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483382%2fhow-do-i-remove-all-occurrences-of-certain-latex-commands-from-a-tex-file%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Castillo d'Acher Características Menú de navegación

Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...