Re: Strange Pacer Question
John, Have a look at https://writer2latex.sourceforge.net/index.html I have used Writer2LaTeX a few years ago and found it very helpful when using what was then called the "Ultraclean" Option, which I don't see on this much more current version on cursory look. Install both writer2latex.oxt and writer2latex-config.oxt. Then play with the Configuration in Tools -> Options (which on my Mac only appear of an ODT is open). You would need to save as ODT first, then export to LaTeX, from which you would be able to use tex2lyx (the -m option canbehelpful), and then you could pull into LyX. If the Word format you are getting is always the same (per lawyer) which is likely, because they would use some sort of "template" much of this could be automated :-)-O The PDF5 might look like File -> Export -> Export [PDF (LuaTeX)] which I have tied to Command-R on my Mac(s). greetings, el On 29/12/2023 00:59, John White wrote: > Hi el, > > > If I get a Word doc, it opens in libreoffice, which allows > for export to pdf. If I recall, I generally either > highlight the words involved while in libreoffice and paste > directly to lyx or instead export to pdf, highlight the > relevant portions of the pdf and paste to lyx. > > > It took me forever to get the ps2pdf right (so it would > become pleading paper, with a vertical line followed by line > numbers to the left of the page. When I use anything else I > have to load pleading paper and use that. > > > I plan to try your PDF5 trick this weekend. > > > John [...] -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
I don't think so. What I am looking into is this: Pacer will only accept pdf files. If those who export to pdf from within a word document don't have to "flatten" the document before uploading to Pacer, while those who use lyx are forced to flatten any document imported from a Word doc before uploading to Pacer, I want to let the Pacer folks know this and suggest that Pacer not default to Word. Word is so dominant that even in Nevada State Courts we are required to convert any editable document to Word before the judge will even look at it. If there must be a standard here, I think it should be an open source standard. Courts should not be in the business of requiring everyone to use Word (or any other proprietary product). John On Thursday, December 28, 2023 2:08:18 PM PST Dr Eberhard W Lisse wrote: > Ever looked at Pandoc? > > el > > On 28/12/2023 21:57, Rich Shepard wrote: > [...] > > > When I have a .doc/.docx file sent that I want to > > incorporate into a LyX document I'll do either of two > > things: > > > > 1. Highlight the desired text in the Word document then use > > Edit -> Paste Special -> Join Lines to put it in the LyX > > doc. > > > > 2. [...] If it's a .doc/.docx file I load it in > > LibreOffice Writer then save as a text file before inserting > > it. > > > > Since your LyX document is set to include line numbers I > > think these actions would work for you. > > > > Regards, > > > > Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
Hi el, If I get a Word doc, it opens in libreoffice, which allows for export to pdf. If I recall, I generally either highlight the words involved while in libreoffice and paste directly to lyx or instead export to pdf, highlight the relevant portions of the pdf and paste to lyx. It took me forever to get the ps2pdf right (so it would become pleading paper, with a vertical line followed by line numbers to the left of the page. When I use anything else I have to load pleading paper and use that. I plan to try your PDF5 trick this weekend. John On Thursday, December 28, 2023 2:04:54 PM PST Dr Eberhard W Lisse wrote: > John, > > did you ever try to export using PDF5 (LuaLaTeX)? > > Recent PSTricks should load > https://github.com/zauguin/luapstricks when using LuaLaTeX. If > that works for the "normal" way try and upload into Pacer and > see what happens. If Pacer accepts that see what happens when > you import a Word document and generate the PDF with LuaLaTeX. > > How do you "import" Word documents? > > el > > On 28/12/2023 21:28, John White wrote: > [...] > > > Normally, I just do regular lyx stuff and once the file is > > ready, export with pst2pdf (to insure that line numbers > > exist at the left side of each page) and upload to Pacer. > > [...] > > > To file in Pacer, the document must be "flattened." This poses no > > problem with files created in lyx. However, whenever I import a Word > > file and convert it to lyx, Pacer balks and refuses to accept the > > document unless I "flatten" it. > > [...] -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
Ever looked at Pandoc? el On 28/12/2023 21:57, Rich Shepard wrote: [...] > When I have a .doc/.docx file sent that I want to > incorporate into a LyX document I'll do either of two > things: > > 1. Highlight the desired text in the Word document then use > Edit -> Paste Special -> Join Lines to put it in the LyX > doc. > > 2. [...] If it's a .doc/.docx file I load it in > LibreOffice Writer then save as a text file before inserting > it. > > Since your LyX document is set to include line numbers I > think these actions would work for you. > > Regards, > > Rich > > > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
John, did you ever try to export using PDF5 (LuaLaTeX)? Recent PSTricks should load https://github.com/zauguin/luapstricks when using LuaLaTeX. If that works for the "normal" way try and upload into Pacer and see what happens. If Pacer accepts that see what happens when you import a Word document and generate the PDF with LuaLaTeX. How do you "import" Word documents? el On 28/12/2023 21:28, John White wrote: [...] > Normally, I just do regular lyx stuff and once the file is > ready, export with pst2pdf (to insure that line numbers > exist at the left side of each page) and upload to Pacer. [...] > To file in Pacer, the document must be "flattened." This poses no > problem with files created in lyx. However, whenever I import a Word > file and convert it to lyx, Pacer balks and refuses to accept the > document unless I "flatten" it. [...] -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
On Thu, 28 Dec 2023, John White wrote: To file in Pacer, the document must be "flattened." This poses no problem with files created in lyx. However, whenever I import a Word file and convert it to lyx, Pacer balks and refuses to accept the document unless I "flatten" it. If I am at the office, I "flatten" it by printing out the lyx document and, using the copier, scan it back to me. I then can upload that scanned file to pacer. If I am at home, I "flatten" it by using "$ pdf2ps orig.pdf - | ps2pdf - flattened.pdf", which usually works. My question is this: Do those who use Microsoft Word also have to "flatten" files before filing in the federal courts or does Pacer just accept Microsoft Word files "as is"? If so, there might be some sort of anti-trust implications in all this. John, I defenstrated from Microsoft 26 years ago so cannot directly answer your question. However, I might help reduce the time and effort to 'flatten' Word docs without running them over in your car. When I have a .doc/.docx file sent that I want to incorporate into a LyX document I'll do either of two things: 1. Highlight the desired text in the Word document then use Edit -> Paste Special -> Join Lines to put it in the LyX doc. 2. When I need the entire Word doc and it's sent as a PDF I use pdftotext, then Insert -> Plain Text, Join Lines. If it's a .doc/.docx file I load it in LibreOffice Writer then save as a text file before inserting it. Since your LyX document is set to include line numbers I think these actions would work for you. Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Strange Pacer Question
I use lyx 2.3.6 on my debian (bullseye) system I often file in Pacer, the database used by the US federal court system. Normally, I just do regular lyx stuff and once the file is ready, export with pst2pdf (to insure that line numbers exist at the left side of each page) and upload to Pacer. HOWEVER, I often get files from other attorneys who use microsoft Word, which I import into lyx and reformat. To file in Pacer, the document must be "flattened." This poses no problem with files created in lyx. However, whenever I import a Word file and convert it to lyx, Pacer balks and refuses to accept the document unless I "flatten" it. If I am at the office, I "flatten" it by printing out the lyx document and, using the copier, scan it back to me. I then can upload that scanned file to pacer. If I am at home, I "flatten" it by using "$ pdf2ps orig.pdf - | ps2pdf - flattened.pdf", which usually works. Pacer itself uses Microsoft Word and brags about it incessantly. My question is this: Do those who use Microsoft Word also have to "flatten" files before filing in the federal courts or does Pacer just accept Microsoft Word files "as is"? If so, there might be some sort of anti-trust implications in all this. John White Jr. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users