I have a couple of lyx documents (the children), I want to create a master document that referencing the children, but if I use Insert -> File -> Doc Lyx the file is copied inside the master document, but if I change the original document (a child) the change is not reflected in the master.
Maybe it is not posible?
Go to Insert > File > Child Document. Then click on "Browse". Then choose your LyX file. Then choose between "include" and "input".
Related
In GitAhead, I would like to open/download/save a file from a specific commit.
In sourcetree, slecting a fil gives you two buttons: "Open before" and "Open after".
I'm looking for something similar.
Is there a way to open a specific version of a specific file, without having to checkout the whole commit?
It's not as obvious as it should be. Navigate to the commit that changed the file. Press and hold the pencil icon in the file's header widget. You should see a menu pop up with options to edit the new and old revisions. The old revision is the file as it existed before the change, and new is the file after the change. Unfortunately, as there is no "Save As", you would have to resort to copy/paste to save.
The other option is to switch to the tree view. That shows arbitrary files as they existed in a given revision. If you want to get a file's contents before the change, you have to switch to the parent commit.
When an RMarkdown document is knit to Word, the Table of Contents (if there is one) always appears at the beginning of the document. If I want to, say, make the Table of Contents appear on the second page of the document, how do I do so?
If I was knitting to HTML I could use this method, but it doesn't seem to work for Word. Meaning, I create a Word template to be used in the reference_docx YAML argument and put the Table of Contents at the bottom of this template, but when I knit a report the Table of Contents appears at the front of the document.
Preferably, I'd like to use a solution that doesn't rely on VBA/VBS and instead uses RMarkdown and (if necessary) a reference_docx file only.
As explained here, based on this and this, you could change the style of the date in the Word document to add a page break after it.
Of course, that only separates the title page from the table of contents and if you want to insert other pages between those two, it wouldn't work.
But at least that's an idea to start from.
I've just been playing around with this issue myself. Unfortunately, I don't think Word allows you to modify a style to insert a break after a style, only before.
However, the TOC header is a style that is created when a TOC is included and can be modified. If you change the TOC header style to include a page break before, save this as your reference style document and run it forces the TOC onto a new page when knit.
As #Ben notes though this only allow you to move the TOC off the title page, not insert it where you want within the document.
I was searching for a solution to this today and came across Garrick Aden‑Buie's blog post and render_toc() function.
Full details of which can be found here or his gist
This function allowed me to move the TOC later in to the document.
I've built a content type to handle document upload. My content type uses a Book node to handle directories/subdirectories and I would like to show a couple of Views that shows the directories structure. When clicking on a directory I would like to show, in another view, all the documents inserted in that directory.
Do you know any existing examples of Views/Panels? That shows a similar structure, as in the Windows Explorer, using Views2?
You can use this module: views_tree
Also tree-like can be built via argument handlers...
when i click to the info Button next to the Filename in a Workspace there is shown a Preview of the PDF File, but i can't find this Preview in the Database or in the Filesystem, anybody know where it will be generated?
Regards
Rene
The flash preview of the PDF stored as a rendition of the actual document. It is stored as cm:thumbnail object as a child (rendition child association) of the PDF document and has the thumbnail name (i.e. thumbnails type) "webpreview".
Use the Alfresco Node Browser, find your PDF document and check it's child associations. You should find the webpreview there. From it's contentUrl you can even find the file in the content store (i.e. on you harddisk).
A preview should be an instance of a rendition in Alfresco. Nodes in Alfresco can have more than 1 rendition (e.g. different quality thumbnails). Renditions of nodes in Alfresco are themselves stored as nodes again, so you should be able to find them using the node browser in the admin panel.
If you navigate to the object using the Node Browser and look at its children, assuming you have already viewed the document in a document library list in Share and have opened the details page to see the preview, you'll see two children listed. One is named "doclib" and the other is named "preview". If you navigate to the doclib child, you will see that it is a PNG. That's the thumbnail shown in the document library list. If you navigate to the "preview" child, you'll see that its mimetype is Flash. That's the flash preview.
If you do not see the flash preview object it is possible that your pdf2swf binary isn't installed correctly or you haven't pointed to it properly in your alfresco-global.properties file.
I have a Word .DOCument that's being generated by a (classic ASP) server. It's an HTML file that's being output as a .DOC using the application/msword content type. The document is generated fine, saves fine, opens up fine in Word, and is fully editable...
The problem occurs on the next document save in Word. A folder is created in the document's directory with the name "<filename>_files" -- just as if you were saving a web page in IE. Inside this folder are three files: colorschememapping.xml, filelist.xml and themedata.thmx. This happens when originally generating the document using IE or Firefox.
-> How can I prevent these _files folders from being created when saving in Microsoft Word?
(flow: users clicks link in browser, Save (.doc) As..., open .doc in MS Word, edit, save -> "_files" folder)
It doesn't only happen generating file from Firefox/IE.
Microsoft Word 2007 does it when editing any HTML file and saving.
The issue is that if you delete the directory, the HTML file get deleted too.
My workaround:
Edit the file in Word usual
Save the file
Close the file (exit Word, or just
close it)
Right click on file in Explorer
Select "Open With"->Notepad.
Delete the file in Explorer
Go back to Notepad and Save
You now only have a HTML file an no _files directory.
If your output isn't too complicated try using RTF. I've had a decent amount of success by outputting RTF files with a .doc extension.
Word 2007 and 2010 default to multi file HTML documents, linking the document to the content files. This is the default behavior for HTML based documents.
The only way around it, that I've found, is to create a real Word Doc without basing it on HTML, or the user has the select "Single File Web Page" when they do a Save As.
Delete to recycle bin. This deletes both the word doc and the unwanted folder. Restore the word doc and then empty the bin.