Tuesday, August 18, 2015

Papeeria News, August 18: spellchecker updates and using deep Git repositories

Spellchecker updates

Guten tag, bonjoure, holla! Hey, why is it highlighted with red? We've added German, French and Spanish languages to spellchecker! Italian and Brasilian Portuguese are coming soon.

New languages in the spellchecker

Using deep Git repositories

Sometimes your LaTeX projects are hidden deep in a Git repository. Let's take a look at CV template by Nicola Rainiero which is hosted on GitHub.

In Papeeria you can easily clone the whole repository into a new project, but wait. Besides the CV template, there is a lot of other cool stuff which you probably don't need at the moment. Can you just clone a single folder with the template?

Repository with CV template by Nicola Rainiero and other LaTeX stuff

Yes, you can. Expand Branch section in the dialog and choose the folder which you want to checkout – /CV_models/EuroPassCV in our case – and create a project.

You can choose a subfolder when cloning Git repository in Papeeria

Your new Papeeria project will have only the sources from the chosen folder. And if you had write permissions in the repository (are you Nicola?) you would be able to push the changes from Papeeria to that very folder seamlessly.

Papeeria takes files from the chosen subfolder

This CV template is now available from our Template Gallery. Enjoy!


Tuesday, July 28, 2015

Papeeria News, July 28

TL; DR: read-write sync between Papeeria project and Git repository

Git sync

We're enhancing our Git integration which was first announced in April and allowed for importing Git repository when creating a new Papeeria project. Today we're launching new synchronization features which enable rich git workflow: pull, checkout, branch, merge and push. Git sync is available to both free and paying users, except that some restrictions apply to free users.

Working with Git from Papeeria

I created a new project from our clone of Deedy resume hosted on GitHub and Git section in the Version Control pane shows me some information.

Git section in the Version Control pane

You can see repository URL, name of the branch and the last revision I synced with.

Pushing changes from Papeeria into the repository

I added a new empty file and now I am going to submit it to the repository. Clicking Sync now button in the Version Control pane opens Git Sync dialog where I can pull the changes from repository and optionally push my changes. However, I need to setup my credentials to be able to push. GitHub uses SSH public key for authorization, so I copy my public key from SSH key section in the dialog and paste it into my account on GitHub.

Don't forget to authorize SSH key on your git hosting


Now I can push, and it completes successfully.


Merging changes

I added a few more lines and at the same time my colleague who prefers to work offline cloned the repository on his laptop, changed some lines in his favorite TeX editor, committed the changes and pushed to the repository. We're both using the same branch and I have to pull his changes into Papeeria and merge them with my work. I open Git Sync dialog, pull the changes and merge completes fine as we didn't touch the same lines.

Merge conflict

However, when it comes to merging we're not always that lucky. Now we both have changes the same line and my attempt to sync failed with merge conflict.

It happens


Project in Papeeria remains intact when merge fails so if I was not in the mood to resolve the conflict I would've just continued my work and merged later. But I don't mind resolving the conflict so I click Start resolving.

Papeeria suggests committing my work into a temporary branch -- that's cool because it allows me to commit and push my updates immediately without waiting for merge.

Commit into a new temporary branch before merging


Now I need to do the merge and I realize it requires running an external git client. I decide to enjoy a cup of coffee before digging into the command line and I close the dialog. Papeeria shows me a reminder about the ongoing merge in the Version Control pane.

Reminder indicates that you had a merge conflict


In a dozen of minutes I get back to Papeeria and click Resume resolving. Merge dialog shows me a few commands which I have to run. git clone, checkout, merge, edit the conflicts in the text editor, git add, commit, push... done! I've merged the changes and pushed them back to papeeria-edition branch which I had been synced with before the conflict happened. I proceed to the third step and switch to papeeria-edition branch again.

The final step of resolving: return back to the working branch

The final history of changes 




Things to keep in mind


  • Only newly created project can be git-enabled.
  • Users subscribed to free Epsilon pricing plan can only pull and push to public repositories hosted on GitHub, Bitbucket, GitLab and Assembla.
  • If you plan to push from Papeeria to Git repo, use SSH protocol and authorize your public key.
  • Merging in case of conflicts requires using external git tools.
Have fun with Git and do no hesitate to contact us in case of any troubles!

Friday, June 12, 2015

Papeeria News, June 11

TL;DR: insert math symbols with Math Assistant

Did you ever find yourself trying to recall what command produces long right arrow? You probably googled it or consulted the Comprehensive LaTeX Symbol List. In Papeeria you can now use Math Assistant.

Math Assistant dialog


You can open Math Assistant dialog using Insert Maths... command in the editor context menu (hit Alt+Insert to open context menu or ⌃+N if you're on Mac OSX). Keyboard is fully supported, so you can choose the required symbol without moving hands to mouse.


Tuesday, May 26, 2015

Papeeria News, May 26

Discussions in the margins just got a little bit better:

  • you can now show or hide all discussions or switch them completely off in your browser using a drop-down above the text editor.
  • every discussion can be shown and hidden by clicking its gray label
  • handy shortcut Ctrl+Alt+M starts a new discussion at the caret position (the same shortcut works in Google Docs)
Discussions drop-down

Monday, May 25, 2015

Solving issues with Cyrillic symbols

This help article is written in Russian, since most of our users who are facing issues with Cyrillic come from Russia.

Что делать, если вы вместо кириллических символов видите пустые места или кракозябры?

Неправильный компилятор

Если вы загрузили в Папирию уже готовый проект и вместо русских слов видите пустые места, то скорее всего проблема в выборе компилятора. По умолчанию проекты, созданные в Папирии, используют компилятор XeLaTeX. Проекты, созданные ранее, с большой вероятностью предназначены для компиляции pdfLaTeX'ом. Эти два компилятора по-разному работают со шрифтами, и компиляция XeLaTeX'ом кириллического текста, ожидающего pdfLaTeX, приводит именно к таким симптомам.

Чтобы решить проблему, переключите компилятор в выпадающем списке под кнопкой Compile.

Неправильная кодировка

Если вы сделали новый проект в Папирии, выбрали компилятор pdfLaTeX и применили найденный где-то на просторах интернета "русифицированный" шаблон, то с большой вероятностью ваш шаблон будет ожидать кодировку cp-1251 или koi8-r. Характерным признаком такого шаблона является строка

\usepackage[cp1251]{inputenc}

в преамбуле документа. Папирия, однако, использует UTF-8, поэтому русский текст, скомпилированный с использованием такого шаблона, скорее всего превратится в кракозябры.

Исправить проблему можно двумя способами. Первый: использовать кодировку UTF-8. Вполне возможно, что достаточно заменить cp1251 на utf8 в вышеупомянутой команде: \usepackage[utf8]{inputenc}. Но возможно, что не все так просто. В этом случае попробуйте настроить compile-time кодировку.

Friday, May 22, 2015

Text editor settings: word wrapping, font size and spellchecker

If you need to change font size, toggle word wrapping or toggle spellchecker, you can do it from the editor settings.

Open text editor settings by clicking cog icon

Change word wrapping, spellchecker and font size options or toggle discussions


For word wrapping you can also use keyboard shortcut Alt+W.


Sunday, May 17, 2015

Papeeria News, May 17

TL;DR: discussions in the margins; font size setting

Marginalia

Did you ever add red-colored remarks like "citation needed" or "TODO: describe algorithm in details" in the sources of your paper? We're sure you did. If you're an advanced TeXnician you probably used todonotes package, but many authors just add text and highlight it manually.

Pierre de Fermat uses marginalia to reply to Blais Pascale comments 

Papeeria v44 adds discussions in the margins. When hovering over the text you can click comment icon next to the text line number and add a comment. Comments show up in the right margin in the text editor. Replies are supported, so you can have discussions in the margins. Once you reached a consensus or completed TODO, you can mark discussion as resolved.

Every single discussion can be shown or hidden, and all discussions can be switched off in the editor settings.

Discussions are stored directly inside the document text as LaTeX comments and remain readable if you export project and continue working offline using other editors.

Font size

Use font size option in the editor settings to make editor fonts bigger or smaller.

Font size option in the settings

Happy typesetting!