I'm working with Jasper for PDF generation and have a template that is used to generate more or less the same document with different number of columns. Thus, in some cases I need to control the width of columns explicitly by setting predefined column width. Is there a possibility in Jasper-Framework that enables tags like in following example. &lt;jr:column width=&quot;$P{CALL_PARAMETER}&quot; uuid=&quot;735c1cbc-08d0-11eb-adc1-0242ac120002&quot;&gt;  The goal is to pass CALL_PARAMETER to Jasper at some point of time and not to hardcode into template. Similar code results at runtime exception.
69485
I have some Jasper reports which are displayed in HTML format. I would like the width of the columns in the HTML tables to automatically resize to fit the content of the widest cell (in that column), such that all the data is displayed.  Currently this does not happen because the HTML generated by Jasper specifies fixed widths for the &lt;table&gt; and some &lt;td&gt; elements, e.g.  &lt;td style="width: 20px; height: 17px;"&gt;   &lt;span style="font-family: Arial; font-size: 11px;"&gt;foo-bar-baz@examp&lt;/span&gt; &lt;/td&gt;   I can't simply remove all these width properties (using JavaScript), because (as shown in the HTML above) any data that would be hidden when using these widths is not even returned to the client-side  Cheers, Don
103030
My code follows:  \documentclass{book} \usepackage{color,colortbl} \begin{document}  \begin{tabular}{ll&gt;{\color{red}}p{20pc}} a &amp;1 &amp;Test \end{tabular}  \end{document}   The output was:    Some unnecessary vertical space came before the last column. If I remove the tag \color{red} then everything works fine, how can I fix this?  Above said issue was fixed based on the suggestion given by David Carlisle and CarLaTeX, but the same problem was there if I use the supertabular environment, I used supertabular package for auto breaking table and the code follows:  \documentclass{book} \usepackage{color,colortbl,supertabular} \begin{document}  \begin{supertabular}{ll&gt;{\leavevmode\color{red}}p{4pc}&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{red}}p{4pc}} a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ \end{supertabular}  \end{document}
55218
Similar to  I want to force a column-break in a two-column document.  \columnbreak   seems to be undefined without the multicol package.
115043
It seems that parskip does not affect columns which was also discussed . However, Stefan's solution seems to work only in block environments (which I do not want to add everywhere). So I thought that I try to patch the column environment with etoolbox. In this regard, I tried to add the following commands to the preamble without effect:  \documentclass{beamer} \usepackage{etoolbox} \setlength{\parskip}{1cm} %\BeforeBeginEnvironment{column}{\setlength{\parskip}{2cm}} \AtBeginEnvironment{column}{\setlength{\parskip}{2cm}} \begin{document}     \begin{frame}{Title}         foo          bar     \end{frame}      \begin{frame}{Title}         \begin{columns}             \begin{column}{\textwidth}                 foo                  bar             \end{column}         \end{columns}     \end{frame}      \begin{frame}{Title}     \begin{columns}         \begin{column}{\textwidth}\setlength{\parskip}{1cm}             foo              bar         \end{column}     \end{columns} \end{frame} \end{document}     Is there any way to set a parskip in every column to make it work like in the last frame of the MWE?
99824
I need to write a text just in this format   \documentclass[twocolumn]{article}.   But I need to switch between single column and double column several times in the same page, without jumping to a new page every time I switch the format. Is this possible without using any package like  \usepackage{multicol} ?
22401
This is similar to:  and , but is slightly different. The other questions are asking more of a why question, not a please do this question. I am asking for a specific implementation of Markdown tables. I found  on making tables in Markdown using  or . The code to make a table looks like this:  | Left align | Right align | Center align | |:-----------|------------:|:------------:| | This       |        This |     This     | | column     |      column |    column    | | will       |        will |     will     | | be         |          be |      be      | | left       |       right |    center    | | aligned    |     aligned |   aligned    |   And the result is:   This is much different than , which says that Jeff doesn't want the &lt;tr&gt;&lt;td&gt; tags allowed on the SE sites. This request has a specific feature request, as opposed to the other questions which don't really have a decisive yes/no answer.  Here are some specific posts that need this type of support:
83191
I have a document that uses twocolumn with scrbook. How can I set the width of the space between the two columns?
14837
I want to generate a PDF by passing HTML contents to a function. I have made use of iTextSharp for this but it does not perform well when it encounters tables and the layout just gets messy.  Is there a better way?
77160
I want to have my tables fill the entire width of the page (i.e., \textwidth). So far, the only thing I've managed to come up with is:  \renewcommand{\tabcolsep}{4.4pt}   By manually trying different values, I can eventually get the table to spread out and fill the space. However, this is tedious as I have a lot of tables.  I tried the tabularx package:  \begin{tabularx}{\columnwidth}{ r r r r r r r } \toprule &amp; $z_{6}$ &amp; $z_{8}$ &amp; $z_{9}$ &amp; $z_{11}$ &amp; $z_{13}$ &amp; $z_{14}$ \\ \midrule fileA &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.08 &amp; 0.79 &amp; 0.08  \\ fileB &amp; 0.01 &amp; 0.00 &amp; 0.13 &amp; 0.00 &amp; 0.84 &amp; 0.00  \\ fileC &amp; 0.00 &amp; 0.39 &amp; 0.02 &amp; 0.49 &amp; 0.00 &amp; 0.00  \\ fileD &amp; 0.75 &amp; 0.08 &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.00  \\ \bottomrule                              \end{tabularx}   However, this still relies on the \tabcolsep value. (If the value is small, all the columns will still be close; if it's large, the columns will be more spread out.) What I'm looking for is an automatic solution for two things:   the table to take the entire width of the page; and each column to be evenly spaced along the horizontal.   tabularx only does (1). How can I get (2)?
79225
I use scrbook class (see bellow) in my book and sometimes I need typeset wide equation.  \documentclass[%     ,fontsize=12pt    %      ,a3paper         % pagesize     ,twocolumn  ]{scrbook} \areaset[5mm]{250mm}{350mm} \unsettoc{toc}{twocolumn}   Is it possible to partially switch between one and two column formatting?  I tried to use the library widetext, but I'm afraid that it is not a part of the MiKTeX distribution. I would like to typeset wide equation in the text, not only at a bottom or top side. Is it possible?  MNWE: (added wide equation; for \setchaptertoc see )  \documentclass[twocolumn]{scrbook} \usepackage[nohints]{minitoc} \usepackage{amsmath, amsthm, amssymb, amsfonts, amsbsy} \usepackage{bigints} \usepackage{mathtools} \mtcsetrules{minitoc}{off} \usepackage{lipsum}  \newcommand*{\setchaptertoc}{%   \setchapterpreamble{   \vspace{1.85\baselineskip} % workaround for removed rule   \smash{\makebox[\linewidth]{\hrulefill}} % workaround for removed rule   \vspace{-1.85\baselineskip} % workaround for removed rule   \minitoc   \vspace{-1.15\baselineskip} % workaround for removed rule   \smash{\makebox[\linewidth]{\hrulefill}} % workaround for removed rule   \vspace{1.15\baselineskip} % workaround for removed rule }} \newcommand{\dd}[1]{\hspace{2pt}d#1}  \begin{document} \dominitoc \tableofcontents  \setchaptertoc \chapter{One} \lipsum[1]     \begin{equation}\label{fyz:fey_eq_elstat18}       E_x(x_1, y_1, z_1) =          \int\limits_{\substack{\text{all}\\\text{area}}}\varrho(x_2, y_2, z_2)         \frac{x_1-x_2}{[(x_1-x_2)^2+(y_1-y_2)^2+(z_1-z_2)^2]^{\frac{3}{2}}}\dd{x_2}\dd{y_2}\dd{z_2}     \end{equation}  \lipsum[1]     \section{One, one} \lipsum[2] \subsection{One, one, one} \lipsum[3] \section{One, two} \lipsum[4]  \setchaptertoc \chapter{Two} \lipsum[5] \section{Two, one} \lipsum[6] \section{Two, two} \subsection{two, two, one} \lipsum[7]  \setchaptertoc \chapter{Three} \section{Three, one} \lipsum[8] \section{Three, two} \lipsum[9] \end{document}
46032
I have searched the stackexchange for a resolution of this problem, but I am still getting an error message when I put in the following (for now neglecting other things in my document, such as documentclass, begin{document}, etc.):  \begin{frame} \frametitle{explanation} \begin{columns} \begin{column}{width=0.5\textwidth}    some text here \end{column} \begin{column}     \begin{center}      \includegraphics[width=0.5\textwidth]{image1.jpg}            \end{center} \end{column} \end{columns} \end{frame}   When compiled, I get the error: Missing number, treated as zero. I should appreciate any help.
31438
Can anyone please help me to understand the below code. I am not able to understand how we are  extracting value from map on visualforce page.  Actually i am trying to get the size of value list which is associated with respective key in map.              &lt;apex:outputPanel &gt;                 &lt;apex:repeat value="{!attributeWrapper.mapAllAttributesLabel}" var="M"&gt;                     &lt;div&gt;                         &lt;div&gt;{!attributeWrapper.mapLabels[M].Name} &lt;/div&gt;                         &lt;div&gt;                             &lt;ul&gt;                                 &lt;apex:repeat value="{!attributeWrapper.mapAllAttributesLabel[M]}" var="attribute"&gt;                                     &lt;li&gt;                                     &lt;p&gt;                                         &lt;apex:outputLink onclick="selectAttribute('{!attribute.attributeLabel.Label__c}','{!attribute.attributeLabel.Attribute__c}');return false;"&gt;                                            &lt;apex:outputLabel value="{!attribute.attributeLabel.Attribute__r.Name}"/&gt;                                         &lt;/apex:outputLink&gt;                                     &lt;/p&gt;                                     &lt;/li&gt;                                 &lt;/apex:repeat&gt;                             &lt;/ul&gt;                         &lt;/div&gt;                     &lt;/div&gt;                 &lt;/apex:repeat&gt;             &lt;/apex:outputPanel&gt;    public with sharing class AttributeWrapper {      public Map&lt;String, List&lt;AttributesLabelWrapper&gt;&gt; mapAllAttributesLabel{       // some code to populate this map     } }   If i do:  {!attributeWrapper.mapAllAttributesLabel[M].size}   I get an error so how do i get the size of value list on VF page?
66496
I'm using Spring's MVC with JSP views. Every JSP page has similar structure - headers, content, footers, perhaps a sidebar, etc. Looking around for "best practices" people seem to "include" footers and headers, but that means that every JSP page includes these "include" statements, giving a fixed format. To my eye a better solution would involve nested views, where a base template is extended with information appropriate to the page in question. One advantage of this approach is that you can have default values assumed in the base template without repeating them elsewhere. Another advantage is that you can further separate structure and content ("header" and "footer" being structural, and so belonging in the base template) in pages which contain a lot of text (think of help pages - you could put all that in the database, but why bother, especially since with Spring you can resolve to different views via the locale?).  There doesn't seem to be any support for this at the MVC level in Spring, but it could be implemented in JSP using custom tags and, indeed, there's a rather clunky attempt  (that might explain what I want better than this question, although I think you could make it less intrusive).  Anyway, my question is - does this already exist as a (popular/standard) tag library? I'm happy writing custom tags, but my impression of this stuff (generating web sites) is that there's a huge range of solutions already out there, with most work going into choosing the correct tools (eg Spring). Thanks.
120657
Suppose, I have the following code:  \documentclass{article} \begin{document} We have totally 7 columns, describing the user: \begin{enumerate} \item ID --- users.name \item Forename --- users\_profiles.first\_name \item Surname --- users\_profiles.last\_name \item Email --- users.mail \item Primary Service --- services.name \item Start date --- FROM\_UNIXTIME(users.created) \item Employment Status --- users\_profiles.employment\_status \end{enumerate} \end{document}   Producing this document:    Is it possible to set the value 7 automatically, depending upon number of elements in the list? The problem is, that it resides before the list.
12759
Consider the following MWE.  \documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath}  \begin{document} \abovedisplayskip=0pt\relax \begin{equation} \begin{cases} ax + by =c \\ px + qy = r \end{cases} \end{equation} \end{document}   produces an output as follows.    What I want to achieve is as follows.    Is there any idea?  My attempt is as follows, but it does not compile.  \documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath}  \begin{document} \abovedisplayskip=0pt\relax \begin{equation} \begin{cases} ax + by =c \tag{OK}\\ px + qy = r \tag{Yes} \end{cases} \end{equation} \end{document}
28701
I've got a following fragment to display in two columns:  Some heading    Some longer                 description                   * with                   * a                   * list   I'm using the following def:  \def\DataPair#1#2{%    \defineparagraphs[TwoColumns][n=2]%    \setupparagraphs[TwoColumns][1][width=\LeftColumnWidth,align=left]%    \startTwoColumns%       {\tfx{\sc #1}}%    \TwoColumns%       {#2}%    \stopTwoColumns% }   Where the content is:  Some longer description \startitemize[packed]    \item with    \item a    \item list \stopitemize   Unfortunately the that block ignores page breaking. Is there some way I can allow \DataPair to page-break at any point?
85191
I am writing a document using the report class in two column mode, but I need a \section to spread across both columns, but how can I set that?  Something like  \documentclass[10pt,danish,a4paper,twoside,twocolumn]{report} \input{preamble.tex} \begin{document}  % This section should spread over both columns \section{Name}  \lipsum[1-3] \end{document}