Re: LyX 2.3.x: how to insert externally generated code for table?

2020-03-04 Thread Andrew Parsloe


On 5/03/2020 5:10 am, Bernt Lie wrote:


I’m running a program which generates LaTeX code for a table.

Question:

  * How can I insert this table into LyX?
  * I want the table to have the same type of preview as Tables I set
up manually inside of LyX
  * I want the table to be a floating table.
  * Such tables may be large, so I may want to make it multi-page, and
possibly rotate it.

Example:


\begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & 
\textbf{Pressure [bar]} & \textbf{Specific volume liq [m3/kg.1e3]} \\ 
\texttt{Float64} & \texttt{Float64} & \texttt{Float64} \\\hline 273.15 
& 0.00611 & 1.0 \\ 275.0 & 0.00697 & 1.0 \\ 280.0 & 0.0099 & 1.0 \\ 
285.0 & 0.01387 & 1.0 \\ 290.0 & 0.01917 & 1.001 \\\hline\hline 
\end{tabular}


Can I insert the table within LyX? Or do I have to insert the table in 
a LyX document and insert the code via an ASCII editor?


Thanks for suggestions!

BR,

B


One way is to put an ert inset inside a preview inset inside a table 
float and paste the table code into the ert inset. Move the cursor 
outside the float and wait while preview does its thing. I did just that 
and attach the result.


Andrew

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: PDF output wrong size

2020-03-04 Thread Richard Opheim
Thank you. That works.
Actually, /setstocksize alone does the trick.

On Tue, Mar 3, 2020 at 2:30 PM Les  wrote:

> On Tue, 3 Mar 2020 11:10:42 -0700
> Richard Opheim  wrote:
>
> > Sorry about that. It's been a while since I posted.
> > I'm running LyX 2.3.4.3 on WIN10. The class is memoir. I specify that
> > the paper format should be 8 x 5, but the program doggedly outputs to
> > 8.5 x 11.
>
> The memoir class ignores LyX page sizes. You have to define them in
> the  preamble.
>
> Here is what I have put in the preamble to solve a similar problem:
>
> \setstocksize{9in}{6in}
> \settrimmedsize{9in}{6in}{*}
> \settrims{0pt}{0pt}
> \settypeblocksize{7.7in}{4.5in}{*}
> \setulmarginsandblock{24mm}{20mm}{*}
> \setheaderspaces{0.625in}{*}{*}
> \setlrmargins{0.75in}{*}{*}
> \setlength{\marginparwidth}{0.0in}
> \setlength{\uppermargin}{0.7in} %Top margin including header
>
> --
> Les Denham
>


-- 
Richard Opheim
PO box 2261
Arizona City, AZ 85123

Skype name: richard.opheim
Office: +1 (262) 724-0443
Mobile: +1 (206) 965-0564
J-E Translation


Now available on Amazon:

*The Taste of Kyoto: A Guide to Dining and Sightseeing in the Old Capital
*

*Conga Oriental: Traditional Parade Music of Eastern Cuba
*



*Sine probationem non creditis*
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.3.x: how to insert externally generated code for table?

2020-03-04 Thread Richard Kimberly Heck
On 3/4/20 11:35 AM, Kornel Benko wrote:
> Am Wed, 4 Mar 2020 16:10:50 +
> schrieb Bernt Lie :
>
>> I’m running a program which generates LaTeX code for a table.
>>
>> Question:
>>
>>   *   How can I insert this table into LyX?
>>   *   I want the table to have the same type of preview as Tables I set up 
>> manually
>> inside of LyX
>>   *   I want the table to be a floating table.
>>   *   Such tables may be large, so I may want to make it multi-page, and 
>> possibly
>> rotate it.
>>
>> Example:
>>
>>
>> \begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & 
>> \textbf{Pressure [bar]} &
>> \textbf{Specific volume liq [m3/kg.1e3]} \\ \texttt{Float64} & 
>> \texttt{Float64} &
>> \texttt{Float64} \\\hline 273.15 & 0.00611 & 1.0 \\ 275.0 & 0.00697 & 1.0 \\ 
>> 280.0 &
>> 0.0099 & 1.0 \\ 285.0 & 0.01387 & 1.0 \\ 290.0 & 0.01917 & 1.001 
>> \\\hline\hline
>> \end{tabular}
>>
>> Can I insert the table within LyX? Or do I have to insert the table in a LyX 
>> document
>> and insert the code via an ASCII editor?
>>
>> Thanks for suggestions!
>>
>> BR,
>> B
> What about
>   File->Import->laTeX (plain)...

If you have it in a separate file, you can also do Insert > File> Child
Document, and choose the file to be included. If you want it previewed,
I guess you can wrap it in a preview inset (though I'm not an expert on
that).

Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.3.x: how to insert externally generated code for table?

2020-03-04 Thread Kornel Benko
Am Wed, 4 Mar 2020 16:10:50 +
schrieb Bernt Lie :

> I’m running a program which generates LaTeX code for a table.
> 
> Question:
> 
>   *   How can I insert this table into LyX?
>   *   I want the table to have the same type of preview as Tables I set up 
> manually
> inside of LyX
>   *   I want the table to be a floating table.
>   *   Such tables may be large, so I may want to make it multi-page, and 
> possibly
> rotate it.
> 
> Example:
> 
> 
> \begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & \textbf{Pressure 
> [bar]} &
> \textbf{Specific volume liq [m3/kg.1e3]} \\ \texttt{Float64} & 
> \texttt{Float64} &
> \texttt{Float64} \\\hline 273.15 & 0.00611 & 1.0 \\ 275.0 & 0.00697 & 1.0 \\ 
> 280.0 &
> 0.0099 & 1.0 \\ 285.0 & 0.01387 & 1.0 \\ 290.0 & 0.01917 & 1.001 
> \\\hline\hline
> \end{tabular}
> 
> Can I insert the table within LyX? Or do I have to insert the table in a LyX 
> document
> and insert the code via an ASCII editor?
> 
> Thanks for suggestions!
> 
> BR,
> B

What about
File->Import->laTeX (plain)...

Kornel


pgppLkO0M3ion.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX 2.3.x: how to insert externally generated code for table?

2020-03-04 Thread Bernt Lie
I’m running a program which generates LaTeX code for a table.

Question:

  *   How can I insert this table into LyX?
  *   I want the table to have the same type of preview as Tables I set up 
manually inside of LyX
  *   I want the table to be a floating table.
  *   Such tables may be large, so I may want to make it multi-page, and 
possibly rotate it.

Example:


\begin{tabular}{rrr} \hline\hline \textbf{Temperature [K]} & \textbf{Pressure 
[bar]} & \textbf{Specific volume liq [m3/kg.1e3]} \\ \texttt{Float64} & 
\texttt{Float64} & \texttt{Float64} \\\hline 273.15 & 0.00611 & 1.0 \\ 275.0 & 
0.00697 & 1.0 \\ 280.0 & 0.0099 & 1.0 \\ 285.0 & 0.01387 & 1.0 \\ 290.0 & 
0.01917 & 1.001 \\\hline\hline \end{tabular}

Can I insert the table within LyX? Or do I have to insert the table in a LyX 
document and insert the code via an ASCII editor?

Thanks for suggestions!

BR,
B
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users