ConTeXt: Preformatted text inside tablesverbatim text in ConTeXt tablesConTeXt: Too much hyphenationHow to wrap text around framed floats in ConTeXt?ConTeXt definedescription: How to get the description's label on a line of its own?How can I get a TABLE to respect the narrower environment in ConTeXt?ConTeXt : specific item behaviorAdding space between nested itemizations in ConTeXtConTeXt : set conversion set for enumerationConText: Extreme Tables: keep row groups together on page breakConTeXt images/floats in text and margin
SOQL: Populate a Literal List in WHERE IN Clause
Recruiter wants very extensive technical details about all of my previous work
What's the meaning of “spike” in the context of “adrenaline spike”?
Why doesn't using two cd commands in bash script execute the second command?
(Calculus) Derivative Thinking Question
Can a druid choose the size of its wild shape beast?
Why one should not leave fingerprints on bulbs and plugs?
Life insurance that covers only simultaneous/dual deaths
How can you use ICE tables to solve multiple coupled equilibria?
Python if-else code style for reduced code for rounding floats
how to write formula in word in latex
Interplanetary conflict, some disease destroys the ability to understand or appreciate music
A limit with limit zero everywhere must be zero somewhere
If curse and magic is two sides of the same coin, why the former is forbidden?
Use void Apex method in Lightning Web Component
Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?
Property of summation
How to explain that I do not want to visit a country due to personal safety concern?
Is it normal that my co-workers at a fitness company criticize my food choices?
What is the significance behind "40 days" that often appears in the Bible?
Define, (actually define) the "stability" and "energy" of a compound
Why does Bach not break the rules here?
A Cautionary Suggestion
how to draw discrete time diagram in tikz
ConTeXt: Preformatted text inside tables
verbatim text in ConTeXt tablesConTeXt: Too much hyphenationHow to wrap text around framed floats in ConTeXt?ConTeXt definedescription: How to get the description's label on a line of its own?How can I get a TABLE to respect the narrower environment in ConTeXt?ConTeXt : specific item behaviorAdding space between nested itemizations in ConTeXtConTeXt : set conversion set for enumerationConText: Extreme Tables: keep row groups together on page breakConTeXt images/floats in text and margin
I want to insert preformatted text into a table. I tried to accomplish this with startlines
but the command shows no effect in tables. It is possible with break
but this is no real solution.
How can I insert preformatted text inside tables?
MWE:
starttext
startlines
multi
lines
work
stoplines
bTABLE
bTR
bTD
startlines
multi
lines
work
stoplines
eTD
bTD
multibreak
linesbreak
work
eTD
eTR
eTABLE
stoptext
context
add a comment |
I want to insert preformatted text into a table. I tried to accomplish this with startlines
but the command shows no effect in tables. It is possible with break
but this is no real solution.
How can I insert preformatted text inside tables?
MWE:
starttext
startlines
multi
lines
work
stoplines
bTABLE
bTR
bTD
startlines
multi
lines
work
stoplines
eTD
bTD
multibreak
linesbreak
work
eTD
eTR
eTABLE
stoptext
context
add a comment |
I want to insert preformatted text into a table. I tried to accomplish this with startlines
but the command shows no effect in tables. It is possible with break
but this is no real solution.
How can I insert preformatted text inside tables?
MWE:
starttext
startlines
multi
lines
work
stoplines
bTABLE
bTR
bTD
startlines
multi
lines
work
stoplines
eTD
bTD
multibreak
linesbreak
work
eTD
eTR
eTABLE
stoptext
context
I want to insert preformatted text into a table. I tried to accomplish this with startlines
but the command shows no effect in tables. It is possible with break
but this is no real solution.
How can I insert preformatted text inside tables?
MWE:
starttext
startlines
multi
lines
work
stoplines
bTABLE
bTR
bTD
startlines
multi
lines
work
stoplines
eTD
bTD
multibreak
linesbreak
work
eTD
eTR
eTABLE
stoptext
context
context
asked 9 hours ago
Christopher BockChristopher Bock
975
975
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The problem with natural tables
is that each cell saves the content before the lines
environment can see the text as individual lines.
You can work around this when you put the the text for the lines
environment in a buffer
. When you load now the content of the buffer in the table the text stays in separate lines.
starttext
startbuffer[lines]
multi
lines
work
stopbuffer
bTABLE
bTR
bTD
startlines
getbuffer[lines]
stoplines
eTD
eTR
eTABLE
stoptext
When you have only a few lines of text you can skip the lines
environment and use the \
command to mark the end of each text line in the table cells.
starttext
bTABLE
bTR
bTD
multi\
lines\
work
eTD
eTR
eTABLE
stoptext
Another possibility is to replace natural tables
with the xtable
environment which can handle lines
without problems because it uses a different method to calculate the table dimensions.
starttext
startxtable
startxrow
startxcell
startlines
multi
lines
work
stoplines
stopxcell
stopxrow
stopxtable
stoptext
add a comment |
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');
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%2f479651%2fcontext-preformatted-text-inside-tables%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem with natural tables
is that each cell saves the content before the lines
environment can see the text as individual lines.
You can work around this when you put the the text for the lines
environment in a buffer
. When you load now the content of the buffer in the table the text stays in separate lines.
starttext
startbuffer[lines]
multi
lines
work
stopbuffer
bTABLE
bTR
bTD
startlines
getbuffer[lines]
stoplines
eTD
eTR
eTABLE
stoptext
When you have only a few lines of text you can skip the lines
environment and use the \
command to mark the end of each text line in the table cells.
starttext
bTABLE
bTR
bTD
multi\
lines\
work
eTD
eTR
eTABLE
stoptext
Another possibility is to replace natural tables
with the xtable
environment which can handle lines
without problems because it uses a different method to calculate the table dimensions.
starttext
startxtable
startxrow
startxcell
startlines
multi
lines
work
stoplines
stopxcell
stopxrow
stopxtable
stoptext
add a comment |
The problem with natural tables
is that each cell saves the content before the lines
environment can see the text as individual lines.
You can work around this when you put the the text for the lines
environment in a buffer
. When you load now the content of the buffer in the table the text stays in separate lines.
starttext
startbuffer[lines]
multi
lines
work
stopbuffer
bTABLE
bTR
bTD
startlines
getbuffer[lines]
stoplines
eTD
eTR
eTABLE
stoptext
When you have only a few lines of text you can skip the lines
environment and use the \
command to mark the end of each text line in the table cells.
starttext
bTABLE
bTR
bTD
multi\
lines\
work
eTD
eTR
eTABLE
stoptext
Another possibility is to replace natural tables
with the xtable
environment which can handle lines
without problems because it uses a different method to calculate the table dimensions.
starttext
startxtable
startxrow
startxcell
startlines
multi
lines
work
stoplines
stopxcell
stopxrow
stopxtable
stoptext
add a comment |
The problem with natural tables
is that each cell saves the content before the lines
environment can see the text as individual lines.
You can work around this when you put the the text for the lines
environment in a buffer
. When you load now the content of the buffer in the table the text stays in separate lines.
starttext
startbuffer[lines]
multi
lines
work
stopbuffer
bTABLE
bTR
bTD
startlines
getbuffer[lines]
stoplines
eTD
eTR
eTABLE
stoptext
When you have only a few lines of text you can skip the lines
environment and use the \
command to mark the end of each text line in the table cells.
starttext
bTABLE
bTR
bTD
multi\
lines\
work
eTD
eTR
eTABLE
stoptext
Another possibility is to replace natural tables
with the xtable
environment which can handle lines
without problems because it uses a different method to calculate the table dimensions.
starttext
startxtable
startxrow
startxcell
startlines
multi
lines
work
stoplines
stopxcell
stopxrow
stopxtable
stoptext
The problem with natural tables
is that each cell saves the content before the lines
environment can see the text as individual lines.
You can work around this when you put the the text for the lines
environment in a buffer
. When you load now the content of the buffer in the table the text stays in separate lines.
starttext
startbuffer[lines]
multi
lines
work
stopbuffer
bTABLE
bTR
bTD
startlines
getbuffer[lines]
stoplines
eTD
eTR
eTABLE
stoptext
When you have only a few lines of text you can skip the lines
environment and use the \
command to mark the end of each text line in the table cells.
starttext
bTABLE
bTR
bTD
multi\
lines\
work
eTD
eTR
eTABLE
stoptext
Another possibility is to replace natural tables
with the xtable
environment which can handle lines
without problems because it uses a different method to calculate the table dimensions.
starttext
startxtable
startxrow
startxcell
startlines
multi
lines
work
stoplines
stopxcell
stopxrow
stopxtable
stoptext
edited 3 hours ago
DG'
10.8k21845
10.8k21845
answered 3 hours ago
Wolfgang SchusterWolfgang Schuster
5,7411811
5,7411811
add a comment |
add a comment |
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%2f479651%2fcontext-preformatted-text-inside-tables%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