Showing posts with label help. Show all posts
Showing posts with label help. Show all posts

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.


Friday, December 26, 2014

Importing data into Papeeria

This help article describes how to import data (text files, images, etc.) into Papeeria from external sources

Import from URL

If a file is somewhere on the Internet and you can access it from your web browser, then you can import that file into Papeeria and update it from time to time with a single click.

Possible use cases

  1. You have a computing job somewhere which exports its results as comma or tab separated values file. You want to import the results into Papeeria to build a plot and want to update it when results change. For instance, you may want to pull crude oil prices data from Quandl
  2. You run R script on your laptop and it writes a graph into Dropbox folder. You want to use that image in your paper and update it the next time your run your R script
  3. Your colleague keeps his part of a paper which you collaborate on in GitHub. You want to pull his text into Papeeria from time to time
How it works

Use Import from URL menu item in the workspace menu in the top-left corner of Papeeria workspace. In a dialog you can either create a new file with contents taken from some URL or update already imported files. When you click Update, we send requests, get file contents and write them into associated files in your project. If we have issues with fetching contents, we report them.

Important to know

Many web file storage services provide links which you can share with your colleagues, but very often such links are supposed to be used by human. They lead to a web page with "Download" button and human is supposed to click that button to start downloading. Papeeria is not a human, and it needs a link to "raw" file (that one which human gets by clicking "Download"). Some services, such as GitHub, provide a link to "raw" file in their UI, but some don't. For instance, it is non-trivial to get a raw link from Dropbox or Google Drive interface.

We created a heuristic which transforms a link to Dropbox download page into a link to raw file. So when you paste a link generated by Dropbox into Import from URL dialog, we'll automatically change it.

We do the same thing for converting a link to GitHub's file viewer into raw link to file contents. E.g. we will automatically convert this link to README.md in our repository to its raw link

Monday, December 22, 2014

Legacy 8-bit charsets in Papeeria

Papeeria keeps text files in UTF-8 and that's okay for most of the users. They either write in plain English or are happy with UTF-8 support in the modern TeX. However, there are legacy packages, document classes and bibliography styles which work best when user input is in a "legacy" 8-bit charset, such as Windows 1251 or KOI8-R, and some people need those packages for compiling. Usually documents which may need legacy charsets have something like this in the preamble:

\usepackage[cp1251]{inputenc}

Papeeria can convert your text files from UTF-8 to 8-bit charsets before feeding them to TeX compiler. You can choose compile-time encoding in the project settings on the dashboard. Select a project, go to "Configuration" tab in the right pane and choose appropriate charset



We've added just two charsets which are the most popular in the Russian TeX community. If you need other charsets, please let us know.

Friday, December 5, 2014

Managing Papeeria cookies

Introduction

Cookie is a small piece of text data which is downloaded from a web site, stored in a web browser and associated with a browser user and visited web site. They may store information which is essential for providing the requested service and may store non-essential information which may help web site with improving service and user experience.

According to so-called "European Cookie Law" (Privacy and Electronic Communications (EC Directive) (Amendment) Regulations 2011) we are required to gain user's consent to store non-essential cookies.

You can find more information about the Cookie Law on the internet. This article on Wired is good read.

Cookies set by Papeeria

Papeeria.com website sets three kinds of cookies.

  1. Authentication cookie which is essential for providing service. It is a session cookie, it is set when user signs in and cleared when user signs out.
  2. User preferences cookies, which include chosen interface language and authentication method. They help us to show greeting and last used sign in method in the sign in widget. These cookies are persistent and live longer than one session
  3. Google Analytics cookies which track your visits of our site pages. These cookies are persistent and anonymized

Consent to use non-essential cookies 

You opt-in and give us your consent to set non-essential cookies when you sign up or later sign in into Papeeria, as warning in the sign-in dialog and corresponding section in the Terms of Service declare. 

Opt-out

We're working on implementation of opt-out from using non-essential cookies.

Clearing cookies

Should you decide to clear all cookies set by Papeeria, you can do it in your web browser settings. We will add an easy way to clear all cookies with a single button click on our website later.

Chrome
Click application menu button, then choose Settings, find "Content settings..." button in Privacy section (sits in Advanced settings. Searching for "cook" in the search box helps a lot). In the Cookies section of Content Settings dialog click "All cookies and site data" button, search for "papeeria.com" and either click "remove all shown" or remove individual sites with close buttons.

Using Plot Builder in Papeeria

This help article describes how to use plot building tool.

Scenario

Suppose you've got some data and you want to build a histogram and insert it into your paper. Let's take oil production stats as an example
Country                "Production (mln bbl/day)""  "Share of World \\%"
"Saudi Arabia"         11.7                         13.80 
"United States"        11.1                         13.09
Russia                 10.3                         12.23
China                  4.3                          5.15
Canada                 3.8                          4.54
Iran                   3.5                          4.14
Iraq                   3.4                          3.75
"United Arab Emirates" 3.08                         3.32
Venezuela              3.02                         3.56
Mexico                 2.9                          3.56
Oil production data taken from Wikipedia

Adding a plot

Adding a plot into LaTeX document involves a few steps: one needs to create a plot itself and then insert a plot into the text as a figure. In Papeeria you can do all this stuff quickly: place caret where you want to add figure tags, hit Alt+Insert and choose Insert Plot from the context menu.
Insert Plot dialog

Paste your data into the text area, choose file name where data will be saved to, choose column delimiter and optionally figure caption. Click Done and Papeeria will add data file into the project, compile PDF file with a histogram and insert figure tags at the caret position.
Hint: choose column delimiter appropriately and quote values which contain delimiter substring (especially important when delimiter is whitespace)
Month   "Price in Euro"
2012-01 86.2344
2012-02 89.7464
2012-03 94.2123
2012-04 91.3811
2012-05 86.0061
2012-06 76.4181
2012-07 83.3615
2012-08 90.4529
2012-09 87.9202
2012-10 85.5900
2012-11 84.8372
2012-12 82.7839
2013-01 84.1874
2013-02 86.7123
2013-03 84.1555
2013-04 79.3453
2013-05 79.2452
2013-06 78.3375
2013-07 81.8711
2013-08 82.5541
2013-09 83.0109
2013-10 79.9776
2013-11 80.0078
2013-12 80.7921
2014-01 78.7576
2014-02 79.4208
2014-03 77.7698
2014-04 78.1769
2014-05 79.4203
2014-06 82.2801
2014-07 79.9469
2014-08 77.5741
2014-09 76.4254
2014-10 69.4637
2014-11 64.3892
Oil price data from
European Central Bank web site

Live preview

When data file is opened in the editor, it is possible to preview the compiled plot by ticking "Show plot preview" checkbox. We refresh plot in the preview as you type. If it fails to compile because of error in data or some other reason, we show a cached plot.

Plot settings

Cogs icon above the editor with opened data file provides access to plot settings pane. You can change plot style, data columns delimiter, position legend appropriately, define axis names, change ticks format and rotation. Most of the options are quite simple, with tics label format being the most tricky. Please refer to gnuplot docs to learn about format specifiers. At the moment we take tic labels for X axis from the first column in the data file.

Plot settings pane and live preview

Advanced plotting

Behind the scenes we compile plots with gnuplot and xelatex. Users of free Epsilon plan don't have many tuning options, however, customers who are subscribed to paid plan Delta have access to raw gnuplot scripts and can enjoy almost all gnuplot features.

Let's build a graph of oil price changes and tune it a little bit. Quick plot created with Insert Plot action looks as shown below. We want to make X tic labels less dense, change colors and line style a little bit and add a dashed line at the mean value of oil prices.

Initial oil prices plot

So let's start with exporting our plot to gnuplot script. Click Export script button, choose script file name (it is important keep .gnuplot extension) and location and leave Use as input checkbox switched on to feed your data to the generated script. Open the generated .gnuplot file in the editor and paste the following code. We hope comments in the code are explanatory enough.

# Code generated by the plot builder
set datafile separator whitespace
set key autotitles columnhead bottom left
set style data linespoints
set style fill solid 1.0
set format x "%g"
set xtics rotate by -30
set format y "%g"
set ytics rotate by 0
set xlabel "Date"
set ylabel "Price in Eur"

# Calculating mean value using constant fitting function
f(x) = mean_y

# '<&3' takes input from the file with descriptor number 3. 
# If you checked "Use as input" checkbox when you
# generated a script then your data file will be associated with this descriptor.
# If you have another data file in your project and want to use it here,
# you may just use relative file name
fit f(x) '<&3' u 0:2 via mean_y

# Placing label on the plot. Yes, you can use LaTeX!
set label 3 gprintf("Mean =$\\frac{\\Sigma_i price_i}{N} = %g$", mean_y) at 1, 65

# required to enable dashed line types 
set termoption dash

# blue-ish solid with width 2 and small round shaped dots
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2 pointtype 7 pointsize 1

# keywords can be abbreviated:
# red-ish dashed width 2, dots undefined
set style line 2 lc rgb '#dd181f' lt 2 lw 2

# this function returns non-empty string with the value of column number "labelcol"
# for every fifth value of column countcol (0 is the column with ordinal numbers of
# the rows in the dataset)
everyfifth(numcol, labelcol) = (int(column(numcol)) % 5 == 0) ? stringcolumn(labelcol) : ""

# Plot our data using line style 1 (defined above) and mean function
# using line style 2
plot '<&3' using 0:2:xtic(everyfifth(0, 1)) ls 1, f(x) ls 2

Papeeria tracks edits in both data and script file and in a few moments it will recompile the plot. The result is much more appealing:

Oil prices plot after tuning

Now we can go back to our text and compile it. Figures are already there, we may need to adjust their placement using optional argument of the figure environment and enjoy the result.

LaTeX in plot labels

Plot labels are compiled with xelatex, so you can use maths and other LaTeX features.
Hint: you need to double-escape with backslash symbols which carry special meaning to LaTeX, such as percent symbol (see the first data sample above)

Connecting data files and script files

You may want to create different scripts and choose which one to use to process your data file in the plot settings pane. You can also link a few data files to the same script, and they will recompile automatically when you change the script file.

Help on gnuplot

Admittedly gnuplot is not the easiest plotting system. If there is an issue with your script and gnuplot writes something to the log, we'll show it in the log pane. However, sometimes log records may not be very helpful. If you're struggling with gnuplot scripts, here is a short list of useful links:

Known limitations and future work

At the moment being plots don't play well with project versions and project clones. We are working on this and will fix the issues shortly.

We plan to enhance plot builder capabilities and add other plotting systems. Don't hesitate to file tickets to our bug tracker or uservoice!

Want to stay in touch?

Follow us on Twitter: http://twitter.com/Papeeria
On Google+: http://google.com/+Papeeria
and VKontakte: http://vk.com/papeeria

Love Papeeria? We need your feedback!

We'll appreciate if you take a few minutes of your time and write a review on our Google Web Store pages. Any language is okay and no flattering is required. Just be honest!


Tuesday, November 25, 2014

Project sharing

This article explains how project sharing works in Papeeria.

Short summary

When Alice who is Papeeria user wants to collaborate on her project with Bob who is not yet registered she
  1. Asks Bob to register on Papeeria and sign in
  2. Generates a sharing link and sends it to Bob
  3. Having signed in, Bob clicks the sharing link and joins the project
See the details below.

Sharing options

If you want to share your project with someone, you have a few options.
  • You can grant access to a few people of your choice, with either read or write permissions. 
  • You can also make your project public, and everyone will be able to read and compile your project. However, even in public projects only those users who are explicitly granted write access will be able to edit files.

All these options are available in the Sharing Settings dialog which you can open using Share button in the workspace or in the dashboard.

Sending invitations

If you want to invite your colleague to join your project, you need to contact him and give him some key or secret. If you were sitting in the same room, you could just say "Hey, dude, let's work on this together! Go to Papeeria and use s3Cr3Tw000rD to access the project". Your peer signs into Papeeria, types the secret word and you're done.

Sharing dialog

Sharing dialog works exactly that way, but uses secret links instead of words. The easiest scenario looks as follows
  1. Generate a pair of secret links by clicking On radio button in Link Sharing section.
  2. Choose Read or Write link and click it to copy to the clipboard
  3. Send the link using your favorite communication tool
Your collaborators need to be registered and signed in in order to be able to join with you in collaborating. Links are long-lived, you can send the same link to any number of people. If you need to invalidate the links, switch Link Sharing off. This will make previously generated links invalid and if you decide to switch link sharing back on, you will generate new links.

We can also send one-off links to your collaborators by email. They work the same way, except that we automatically send an email and automatically invalidate the link once it is used. To send one-off links:
  1. Type collaborator's email addresses Collaborators table, change permissions if needed and click Add
  2. Optionally add a text message to be wrapped into the email
  3. Click Done

Email recipients will have to register and sign in, and once they click the invitation link they will gain the associated permission to read or write your project.

Managing access

No matter what link did you use to share the project, all collaborators show up in the table and you can manage their permissions or revoke access completely.