Remove selectable text from source code PDF outputCan I enter code directly from a source file?Reference...
Use comma instead of & in table
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
Can chords be played on the flute?
Non-Italian European mafias in USA?
How to count words in a line
Is there a ternary operator in math
Reason Why Dimensional Travelling Would be Restricted
What is the wife of a henpecked husband called?
How to speed up a process
Linear regression when Y is bounded and discrete
How to count occurrences of Friday 13th
How to approximate rolls for potions of healing using only d6's?
How can atoms be electrically neutral when there is a difference in the positions of the charges?
Should I choose Itemized or Standard deduction?
Compare four integers, return word based on maximum
Difference between 'stomach' and 'uterus'
How can I be pwned if I'm not registered on that site?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
I can't die. Who am I?
How can I handle a player who pre-plans arguments about my rulings on RAW?
How do ISS astronauts "get their stripes"?
Whom do I have to contact for a ticket refund in case of denied boarding (in the EU)?
Pronunciation of powers
Where is this triangular-shaped space station from?
Remove selectable text from source code PDF output
Can I enter code directly from a source file?Reference source code line in minted packageEmbedded PDF images in PDF output not selectable / can't be copiedHow can I prevent the label / frame to be split from source code in minted?Basic minted example prints out latex code, not source codeSource code explanation in LaTeXWhich package produced this plot with selectable legend text?Censor minted source code in pdfminted creates borders in my source codeIncluded PDF image has invisible, but selectable text
I am writing my master thesis in LaTeX. For source code listings I use minted
package. However, my thesis supervisor pointed out that the anti-plagiarism software that is now used in my country will pick up code snippets and mark them as plagiarism (which is unavoidable since a lot of the code is in GLSL shader language and thus looks like all other shader programs). He makes his students insert source code as pictures from IDE.
So, I am looking for a way to either:
- convert
minted
output to images during LaTeX build - I'm not sure if this would work, but I was also wondering if I could somehow strip "text" information from PDF file for source codes so they would appear on printed pages but would not be selectable/copyable (the anti-plagiarism system converts everything to TXT before processing)
BTW, some code span multiple pages so it can't be as easy as one listing-one picture.
graphics minted
New contributor
add a comment |
I am writing my master thesis in LaTeX. For source code listings I use minted
package. However, my thesis supervisor pointed out that the anti-plagiarism software that is now used in my country will pick up code snippets and mark them as plagiarism (which is unavoidable since a lot of the code is in GLSL shader language and thus looks like all other shader programs). He makes his students insert source code as pictures from IDE.
So, I am looking for a way to either:
- convert
minted
output to images during LaTeX build - I'm not sure if this would work, but I was also wondering if I could somehow strip "text" information from PDF file for source codes so they would appear on printed pages but would not be selectable/copyable (the anti-plagiarism system converts everything to TXT before processing)
BTW, some code span multiple pages so it can't be as easy as one listing-one picture.
graphics minted
New contributor
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 hours ago
add a comment |
I am writing my master thesis in LaTeX. For source code listings I use minted
package. However, my thesis supervisor pointed out that the anti-plagiarism software that is now used in my country will pick up code snippets and mark them as plagiarism (which is unavoidable since a lot of the code is in GLSL shader language and thus looks like all other shader programs). He makes his students insert source code as pictures from IDE.
So, I am looking for a way to either:
- convert
minted
output to images during LaTeX build - I'm not sure if this would work, but I was also wondering if I could somehow strip "text" information from PDF file for source codes so they would appear on printed pages but would not be selectable/copyable (the anti-plagiarism system converts everything to TXT before processing)
BTW, some code span multiple pages so it can't be as easy as one listing-one picture.
graphics minted
New contributor
I am writing my master thesis in LaTeX. For source code listings I use minted
package. However, my thesis supervisor pointed out that the anti-plagiarism software that is now used in my country will pick up code snippets and mark them as plagiarism (which is unavoidable since a lot of the code is in GLSL shader language and thus looks like all other shader programs). He makes his students insert source code as pictures from IDE.
So, I am looking for a way to either:
- convert
minted
output to images during LaTeX build - I'm not sure if this would work, but I was also wondering if I could somehow strip "text" information from PDF file for source codes so they would appear on printed pages but would not be selectable/copyable (the anti-plagiarism system converts everything to TXT before processing)
BTW, some code span multiple pages so it can't be as easy as one listing-one picture.
graphics minted
graphics minted
New contributor
New contributor
edited 17 hours ago
JouleV
4,76111039
4,76111039
New contributor
asked 17 hours ago
JohnJohn
61
61
New contributor
New contributor
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 hours ago
add a comment |
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 hours ago
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 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
});
}
});
John 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');
});
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%2f477693%2fremove-selectable-text-from-source-code-pdf-output%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
John is a new contributor. Be nice, and check out our Code of Conduct.
John is a new contributor. Be nice, and check out our Code of Conduct.
John is a new contributor. Be nice, and check out our Code of Conduct.
John 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');
});
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%2f477693%2fremove-selectable-text-from-source-code-pdf-output%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
To appear on printed pages without the underlying textual content it would not help to import say pdf pages of your minted text. Your supervisor may not always be right but with their experience have learnt that images is the way to go. IT IS frustrating to clip the minted output . You could save block as subfiles for draft run as tex includes to let you approximate line cuts then print each compiled sub file to image pdf for replace one tex include with one to three includegraphics so as to fit each page but after a few attempts it should become second nature as to how many lines will fit.
– KJO
13 hours ago
How does it handle normal quotes (with credit given)?
– John Kormylo
13 hours ago